Skip to content

Commit 0a6d09c

Browse files
authored
fix mypy issues by folding in changes from #2181
1 parent 6da0e07 commit 0a6d09c

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

openff/toolkit/topology/molecule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5654,7 +5654,7 @@ def _networkx_graph_to_hill_formula(graph: "nx.Graph[int]") -> str:
56545654
if not isinstance(graph, nx.Graph):
56555655
raise ValueError("The graph must be a NetworkX graph.")
56565656

5657-
atom_nums: list[int] = [atomic_number for (_, atomic_number) in graph.nodes(data="atomic_number", default=1)]
5657+
atom_nums: list[int] = [atomic_number for (_, atomic_number) in graph.nodes(data="atomic_number", default=1)] # type: ignore[misc]
56585658

56595659
return _atom_nums_to_hill_formula(atom_nums) # type:ignore[arg-type]
56605660

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ lint.isort.known-third-party = [ "openff.interchange", "openff.utilities", "open
4444

4545
[tool.mypy]
4646
python_version = 3.12
47-
plugins = "numpy.typing.mypy_plugin"
4847
warn_unused_configs = true
4948
# would be nice to flip back to true
5049
warn_unused_ignores = false

0 commit comments

Comments
 (0)