Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
wlcsm committed Aug 15, 2024
1 parent 63fa2a4 commit 2f37c63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion graphix/opengraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from graphix.generator import generate_from_graph

if TYPE_CHECKING:

from graphix.pattern import Pattern
from graphix.pauli import Plane

Check warning on line 14 in graphix/opengraph.py

View check run for this annotation

Codecov / codecov/patch

graphix/opengraph.py#L13-L14

Added lines #L13 - L14 were not covered by tests

Expand Down
5 changes: 4 additions & 1 deletion graphix/pyzx.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

from __future__ import annotations

import warnings

import networkx as nx
import pyzx as zx

Expand Down Expand Up @@ -34,7 +36,8 @@ def to_pyzx_graph(og: OpenGraph) -> zx.graph.base.BaseGraph:
raise RuntimeError(msg) from e

Check warning on line 36 in graphix/pyzx.py

View check run for this annotation

Codecov / codecov/patch

graphix/pyzx.py#L34-L36

Added lines #L34 - L36 were not covered by tests
if zx.__version__ != "0.8.0":
warnings.warn(

Check warning on line 38 in graphix/pyzx.py

View check run for this annotation

Codecov / codecov/patch

graphix/pyzx.py#L38

Added line #L38 was not covered by tests
"`to_pyzx_graph` is guaranteed to work only with pyzx==0.8.0 due to possible breaking changes in `pyzx`."
"`to_pyzx_graph` is guaranteed to work only with pyzx==0.8.0 due to possible breaking changes in `pyzx`.",
stacklevel=1,
)
g = zx.Graph()

Expand Down

0 comments on commit 2f37c63

Please sign in to comment.