Skip to content

Commit

Permalink
Ignore missing type annotations in rdkit
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshanuikabundi committed Nov 10, 2023
1 parent 50bdb9a commit 4ff6bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openff/toolkit/utils/_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ def __init__(
def get_structure_string(self):
with StringIO() as f:
if RDKIT_AVAILABLE:
from rdkit.Chem.rdmolfiles import PDBWriter
from rdkit.Chem.rdmolfiles import PDBWriter # type: ignore

write_box_vectors(f, self.topology)

writer = PDBWriter(f)
writer: PDBWriter = PDBWriter(f)
for mol in self.topology.molecules:
writer.write(mol.to_rdkit())

Expand Down

0 comments on commit 4ff6bab

Please sign in to comment.