Skip to content

Commit

Permalink
Update matter_server/common/helpers/util.py
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Hjelmare <[email protected]>
  • Loading branch information
marcelveldt and MartinHjelmare authored Jun 27, 2023
1 parent bb78873 commit e0aa83d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion matter_server/common/helpers/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ def dataclass_from_dict(cls: type[_T], dict_obj: dict, strict: bool = False) ->
Including support for nested structures and common type conversions.
If strict mode enabled, any additional keys in the provided dict will result in a KeyError.
"""
# pylint: disable=consider-using-set-comprehension
if strict:
extra_keys = dict_obj.keys() - set([f.name for f in fields(cls)])
if extra_keys:
Expand Down

0 comments on commit e0aa83d

Please sign in to comment.