Skip to content

Commit 839e233

Browse files
Bump mypy from 1.11.2 to 1.13.0 (#936)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcel van der Veldt <[email protected]>
1 parent ba8947e commit 839e233

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

matter_server/common/helpers/util.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def parse_value(
143143
value = None
144144

145145
if is_dataclass(value_type) and isinstance(value, dict):
146-
return dataclass_from_dict(value_type, value)
146+
return dataclass_from_dict(value_type, value) # type: ignore[arg-type]
147147
# get origin value type and inspect one-by-one
148148
origin: Any = get_origin(value_type)
149149
if origin in (list, tuple, set) and isinstance(value, (list, tuple, set)):
@@ -267,7 +267,10 @@ def parse_value(
267267

268268

269269
def dataclass_from_dict(
270-
cls: type[_T], dict_obj: dict, strict: bool = False, allow_sdk_types: bool = False
270+
cls: type[_T],
271+
dict_obj: dict,
272+
strict: bool = False,
273+
allow_sdk_types: bool = False,
271274
) -> _T:
272275
"""
273276
Create (instance of) a dataclass by providing a dict with values.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ test = [
4545
"aioresponses==0.7.7",
4646
"codespell==2.3.0",
4747
"isort==5.13.2",
48-
"mypy==1.11.2",
48+
"mypy==1.13.0",
4949
"pre-commit==4.0.1",
5050
"pre-commit-hooks==5.0.0",
5151
"pylint==3.3.1",

0 commit comments

Comments
 (0)