home-assistant-core/mypy.ini
Andrey e60f9ca392
More typing (#15449)
## Description:

More typing improvements.

Switch to using `mypy.ini` for flexibility

Add `warn_return_any` check except in `homeassistant.util.yaml` that does typing hacks. Fix some type annotations as resulting from this check and ignore others were fixing is hard.

## Checklist:
  - [x] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
2018-07-13 20:14:45 +03:00

12 lines
223 B
INI

[mypy]
warn_redundant_casts = true
warn_unused_configs = true
ignore_missing_imports = true
follow_imports = silent
warn_unused_ignores = true
warn_return_any = true
[mypy-homeassistant.util.yaml]
warn_return_any = false