mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Update mypy-dev to 1.14.0a2 (#129625)
This commit is contained in:
parent
5bd63bb56b
commit
4f20977a8e
@ -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)
|
||||
|
@ -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
|
||||
|
1
mypy.ini
1
mypy.ini
@ -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
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user