Skip to content

Commit

Permalink
Fix typing hint
Browse files Browse the repository at this point in the history
  • Loading branch information
hit9 committed May 24, 2023
1 parent db66658 commit 94529e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/py/bitprotolib/bp.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ class MessageBase(Accessor):

def to_dict(self) -> Dict[str, Any]:
"""Converts this message to a dict."""
return asdict(self, dict_factory=getattr(self, "dict_factory", dict))
return asdict(
self, dict_factory=getattr(self, "dict_factory", dict) # type:ignore
)

def to_json(
self, indent: Optional[int] = None, separators: Optional[Tuple[str, str]] = None
Expand Down

0 comments on commit 94529e6

Please sign in to comment.