Skip to content

Commit 2d8e693

Browse files
authored
Update mypy-dev to 1.14.0a7 (#133390)
1 parent 1512cd5 commit 2d8e693

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

homeassistant/components/image/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ async def _write_frame() -> bool:
348348
# While this results in additional bandwidth usage,
349349
# given the low frequency of image updates, it is acceptable.
350350
frame.extend(frame)
351-
await response.write(frame)
351+
await response.write(frame) # type: ignore[arg-type]
352352
return True
353353

354354
event = asyncio.Event()

mypy.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ show_error_codes = true
1010
follow_imports = normal
1111
local_partial_types = true
1212
strict_equality = true
13+
strict_bytes = true
1314
no_implicit_optional = true
1415
warn_incomplete_stub = true
1516
warn_redundant_casts = 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.8
1212
freezegun==1.5.1
1313
license-expression==30.4.0
1414
mock-open==1.4.0
15-
mypy-dev==1.14.0a6
15+
mypy-dev==1.14.0a7
1616
pre-commit==4.0.0
1717
pydantic==2.10.3
1818
pylint==3.3.2

script/hassfest/mypy_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
# Enable some checks globally.
4848
"local_partial_types": "true",
4949
"strict_equality": "true",
50+
"strict_bytes": "true",
5051
"no_implicit_optional": "true",
5152
"warn_incomplete_stub": "true",
5253
"warn_redundant_casts": "true",

0 commit comments

Comments
 (0)