Skip to content

Commit

Permalink
Mypy.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtarzia committed Sep 3, 2024
1 parent b45618a commit 7843a67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cgexplore/_internal/utilities/chemiscope_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __post_init__(self) -> None:
],
},
}
self.all_shapes = {}
self.all_shapes: dict[str, dict] = {}

def append_property(self, property_dict: dict) -> None:
"""Append properties in property_dict to json data."""
Expand Down Expand Up @@ -162,7 +162,7 @@ def append_bonds_as_shapes(self, molecule: stk.Molecule) -> None:

shape_string = ",".join(self.all_shapes.keys())

self.json_data["settings"]["structure"][0]["shape"] = shape_string
self.json_data["settings"]["structure"][0]["shape"] = shape_string # type: ignore[index]

def write_json(self) -> None:
"""Write the chemiscope json."""
Expand Down

0 comments on commit 7843a67

Please sign in to comment.