Skip to content

Commit

Permalink
trying to fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
RazinShaikh committed Jun 26, 2024
1 parent 1593d31 commit 86b3df1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyzx/graph/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,9 @@ def merge(self, other: 'BaseGraph') -> Tuple[List[VT],List[ET]]:
def subgraph_from_vertices(self,verts: List[VT]) -> 'BaseGraph':
"""Returns the subgraph consisting of the specified vertices."""
from .graph import Graph # imported here to prevent circularity
from .multigraph import Multigraph
g = Graph(backend=type(self).backend)
if type(self).backend == 'multigraph':
if isinstance(self, Multigraph):
g.set_auto_simplify(self._auto_simplify)
ty = self.types()
rs = self.rows()
Expand Down

0 comments on commit 86b3df1

Please sign in to comment.