Enable pydantic mypy plugin (#87415)

This commit is contained in:
Marc Mueller
2023-02-09 13:33:10 +01:00
committed by GitHub
parent 2d2ff19949
commit 67499e0204
7 changed files with 35 additions and 8 deletions

View File

@@ -4,6 +4,7 @@
[mypy]
python_version = 3.10
plugins = pydantic.mypy
show_error_codes = true
follow_imports = silent
ignore_missing_imports = true
@@ -26,6 +27,12 @@ disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true
[pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[mypy-homeassistant.*]
no_implicit_reexport = true