Update mypy-dev to 1.14.0a2 (#129625)

This commit is contained in:
Marc Mueller 2024-11-02 19:15:50 +01:00 committed by GitHub
parent 5bd63bb56b
commit 4f20977a8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 3 deletions

View File

@ -331,7 +331,7 @@ class EnergyManager:
"device_consumption",
):
if key in update:
data[key] = update[key] # type: ignore[literal-required]
data[key] = update[key]
self.data = data
self._store.async_delay_save(lambda: data, 60)

View File

@ -223,7 +223,7 @@ class ImageProcessingFaceEntity(ImageProcessingEntity):
confidence = f_co
for attr in (ATTR_NAME, ATTR_MOTION):
if attr in face:
state = face[attr] # type: ignore[literal-required]
state = face[attr]
break
return state

View File

@ -11,6 +11,7 @@ follow_imports = normal
local_partial_types = true
strict_equality = true
no_implicit_optional = true
report_deprecated_as_error = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_configs = true

View File

@ -12,7 +12,7 @@ coverage==7.6.1
freezegun==1.5.1
license-expression==30.4.0
mock-open==1.4.0
mypy-dev==1.13.0a1
mypy-dev==1.14.0a2
pre-commit==4.0.0
pydantic==1.10.18
pylint==3.3.1

View File

@ -43,6 +43,7 @@ GENERAL_SETTINGS: Final[dict[str, str]] = {
"local_partial_types": "true",
"strict_equality": "true",
"no_implicit_optional": "true",
"report_deprecated_as_error": "true",
"warn_incomplete_stub": "true",
"warn_redundant_casts": "true",
"warn_unused_configs": "true",