Skip to content

Commit

Permalink
Fix linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyue Ping Ong committed May 8, 2023
1 parent 247d90e commit 1ef039d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monty/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1ef039d

Please sign in to comment.