From 1ef039d97e73677f5cc121d1d43d55612be836f6 Mon Sep 17 00:00:00 2001 From: Shyue Ping Ong Date: Sun, 7 May 2023 20:02:55 -0700 Subject: [PATCH] Fix linting. --- monty/json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monty/json.py b/monty/json.py index be7543a7..766c16b6 100644 --- a/monty/json.py +++ b/monty/json.py @@ -298,7 +298,7 @@ def default(self, o) -> dict: # pylint: disable=E0202 "dtype": o.type(), } if "Complex" in o.type(): - d["data"] = [o.real.tolist(), o.imag.tolist()] + d["data"] = [o.real.tolist(), o.imag.tolist()] # type: ignore else: d["data"] = o.numpy().tolist() return d @@ -361,7 +361,7 @@ def default(self, o) -> dict: # pylint: disable=E0202 module_version = import_module(parent_module).__version__ # type: ignore d["@version"] = str(module_version) except (AttributeError, ImportError): - d["@version"] = None + d["@version"] = None # type: ignore return d except AttributeError: return json.JSONEncoder.default(self, o)