From 4ff6bab7a66e390b23e2f3fac73511045ea469f9 Mon Sep 17 00:00:00 2001 From: Josh Mitchell Date: Fri, 10 Nov 2023 14:44:09 +1100 Subject: [PATCH] Ignore missing type annotations in rdkit --- openff/toolkit/utils/_viz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openff/toolkit/utils/_viz.py b/openff/toolkit/utils/_viz.py index 83a23b577..1c05c2ba0 100644 --- a/openff/toolkit/utils/_viz.py +++ b/openff/toolkit/utils/_viz.py @@ -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())