Skip to content

Commit

Permalink
Enable InlineTypedDict
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Dec 6, 2024
1 parent bd9aefd commit 800de10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ platform = linux
plugins = pydantic.mypy
show_error_codes = true
follow_imports = normal
enable_incomplete_feature = InlineTypedDict
local_partial_types = true
strict_equality = true
no_implicit_optional = true
Expand Down
8 changes: 5 additions & 3 deletions script/hassfest/mypy_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@
"plugins": "pydantic.mypy",
"show_error_codes": "true",
"follow_imports": "normal",
# "enable_incomplete_feature": ", ".join( # noqa: FLY002
# []
# ),
"enable_incomplete_feature": ", ".join( # noqa: FLY002
[
"InlineTypedDict",
]
),
# Enable some checks globally.
"local_partial_types": "true",
"strict_equality": "true",
Expand Down

0 comments on commit 800de10

Please sign in to comment.