Skip to content

Commit 65718f7

Browse files
authored
refactor!: Remove "Signature" from hugr-py (#1186)
I was originally suspicious why this contained a PolyFuncType not a FunctionType, but AFAICS this isn't used, turns out that it doesn't change what goes into `specification/schema/` at all... BREAKING CHANGE: the Signature class is gone, but it's not clear how or why you might have been using it...
1 parent 8bec8e9 commit 65718f7

File tree

1 file changed

+0
-18
lines changed
  • hugr-py/src/hugr/serialization

1 file changed

+0
-18
lines changed

hugr-py/src/hugr/serialization/tys.py

-18
Original file line numberDiff line numberDiff line change
@@ -352,24 +352,6 @@ class Type(RootModel):
352352
TypeRow = list[Type]
353353

354354

355-
# -------------------------------------------
356-
# --------------- Signature -----------------
357-
# -------------------------------------------
358-
359-
360-
class Signature(ConfiguredBaseModel):
361-
"""Describes the edges required to/from a node.
362-
363-
This includes both the concept of "signature" in the spec, and also the target
364-
(value) of a call (constant).
365-
"""
366-
367-
signature: "PolyFuncType" # The underlying signature
368-
369-
# The extensions which are associated with all the inputs and carried through
370-
input_extensions: ExtensionSet
371-
372-
373355
# Now that all classes are defined, we need to update the ForwardRefs in all type
374356
# annotations. We use some inspect magic to find all classes defined in this file
375357
# and call model_rebuild()

0 commit comments

Comments
 (0)