From 20e81bbae60dd01da5c18bbc94b1ae36c51d7f4e Mon Sep 17 00:00:00 2001 From: "Haoyu (Daniel)" Date: Sun, 20 Oct 2024 14:18:35 +0800 Subject: [PATCH] suppress mypy error --- src/monty/json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monty/json.py b/src/monty/json.py index f03a7168e..67c3e0eda 100644 --- a/src/monty/json.py +++ b/src/monty/json.py @@ -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):