Skip to content

Commit 3e67379

Browse files
authored
chore: Remove guppy test dependency (#516)
Removes the dependency on the guppy package, to avoid dependency cycles. The lowering tests here are being moved to the guppy project instead.
1 parent eca258b commit 3e67379

File tree

5 files changed

+66
-162
lines changed

5 files changed

+66
-162
lines changed

poetry.lock

Lines changed: 60 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ mypy = "^1.11.0"
4141
hypothesis = "^6.108.5"
4242
graphviz = "^0.20"
4343
pre-commit = "^3.8.0"
44-
guppylang = {git = "https://github.com/CQCL/guppylang", branch = "doug/hugr-0.10.0"}
4544

4645
[build-system]
4746
requires = ["maturin~=1.7"]

tket2-py/examples/utils/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
"""Some utility functions for the example notebooks."""
22

3+
from typing import TYPE_CHECKING, Any
34
from tket2.passes import lower_to_pytket
45
from tket2.circuit import Tk2Circuit
56

6-
from guppylang.definition.function import RawFunctionDef
7+
if TYPE_CHECKING:
8+
try:
9+
from guppylang.definition.function import RawFunctionDef # type: ignore[import-untyped, import-not-found, unused-ignore] # noqa: F401
10+
except ImportError:
11+
RawFunctionDef = Any
712

813

914
# We need to define this helper function for now. It will be included in guppy in the future.

0 commit comments

Comments
 (0)