Skip to content

Commit

Permalink
suppress mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Oct 20, 2024
1 parent d18a134 commit 20e81bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monty/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ def default(self, o) -> dict:
and dataclasses.is_dataclass(o)
):
# This handles dataclasses that are not subclasses of MSONAble.
d = dataclasses.asdict(o) # type: ignore[call-overload]
d = dataclasses.asdict(o) # type: ignore[call-overload, arg-type]
elif hasattr(o, "as_dict"):
d = o.as_dict()
elif isinstance(o, Enum):
Expand Down

0 comments on commit 20e81bb

Please sign in to comment.