Skip to content

Commit 94529e6

Browse files
committed
Fix typing hint
1 parent db66658 commit 94529e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/py/bitprotolib/bp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ class MessageBase(Accessor):
191191

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

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

0 commit comments

Comments
 (0)