Skip to content

Commit 9719cdf

Browse files
committed
Enable report-deprecated-as-error
1 parent eb2d4bd commit 9719cdf

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

homeassistant/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __init__(self, debug: bool) -> None:
8181
"""Init the event loop policy."""
8282
super().__init__()
8383
self.debug = debug
84-
self._watcher: asyncio.AbstractChildWatcher | None = None
84+
self._watcher: asyncio.AbstractChildWatcher | None = None # type: ignore[deprecated] # Python 3.14
8585

8686
def _init_watcher(self) -> None:
8787
"""Initialize the watcher for child processes.

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

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)