tinkoff-ai / etna

ETNA – Time-Series Library
https://etna.tinkoff.ru
Apache License 2.0
856 stars 81 forks source link

Fix `mypy` warnings about untyped functions #1327

Open Mr-Geekman opened 1 year ago

Mr-Geekman commented 1 year ago

🚀 Feature Request

Fix mypy warnings about untyped functions, because now it shows warnings like:

etna/transforms/decomposition/change_points_based/per_interval_models/constant.py:13: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]

Proposal

Test cases

No response

Additional context

Developing in docs-prototype branch.

Mr-Geekman commented 1 year ago

Setting disallow_untyped_defs = true in pyproject.toml gives:

Found 358 errors in 99 files (checked 195 source files)

So, this issue requires a lot of changes. However, most of that I've seen is very simple.