Skip to content

Commit

Permalink
import Self from typing extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed May 24, 2024
1 parent e52a7f8 commit b25993c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion hugr-py/src/hugr/hugr.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from enum import Enum
from typing import (
Iterable,
Self,
Sequence,
Protocol,
Generic,
Expand All @@ -14,6 +13,8 @@
ClassVar,
)

from typing_extensions import Self

from hugr.serialization.serial_hugr import SerialHugr
from hugr.serialization.ops import BaseOp, OpType as SerialOp
import hugr.serialization.ops as sops
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ toml = "^0.10.0"
[tool.poetry.group.hugr.dependencies]
hugr = { path = "hugr-py", develop = true }


[tool.poetry.dependencies]
typing-extensions = "^4.12.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit b25993c

Please sign in to comment.