Skip to content

Commit 4f20977

Browse files
authored
Update mypy-dev to 1.14.0a2 (#129625)
1 parent 5bd63bb commit 4f20977

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

homeassistant/components/energy/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ async def async_update(self, update: EnergyPreferencesUpdate) -> None:
331331
"device_consumption",
332332
):
333333
if key in update:
334-
data[key] = update[key] # type: ignore[literal-required]
334+
data[key] = update[key]
335335

336336
self.data = data
337337
self._store.async_delay_save(lambda: data, 60)

homeassistant/components/image_processing/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def state(self) -> str | int | None:
223223
confidence = f_co
224224
for attr in (ATTR_NAME, ATTR_MOTION):
225225
if attr in face:
226-
state = face[attr] # type: ignore[literal-required]
226+
state = face[attr]
227227
break
228228

229229
return state

mypy.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ follow_imports = normal
1111
local_partial_types = true
1212
strict_equality = true
1313
no_implicit_optional = true
14+
report_deprecated_as_error = true
1415
warn_incomplete_stub = true
1516
warn_redundant_casts = true
1617
warn_unused_configs = true

requirements_test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ coverage==7.6.1
1212
freezegun==1.5.1
1313
license-expression==30.4.0
1414
mock-open==1.4.0
15-
mypy-dev==1.13.0a1
15+
mypy-dev==1.14.0a2
1616
pre-commit==4.0.0
1717
pydantic==1.10.18
1818
pylint==3.3.1

script/hassfest/mypy_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"local_partial_types": "true",
4444
"strict_equality": "true",
4545
"no_implicit_optional": "true",
46+
"report_deprecated_as_error": "true",
4647
"warn_incomplete_stub": "true",
4748
"warn_redundant_casts": "true",
4849
"warn_unused_configs": "true",

0 commit comments

Comments
 (0)