Skip to content

Commit

Permalink
rename Int to Usize
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Jan 12, 2024
1 parent 3191537 commit 1051e69
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions guppy/hugr/tys.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,10 @@ class Variable(BaseModel):
b: "TypeBound"


class Int(BaseModel):
"""An arbitrary size integer."""
class USize(BaseModel):
"""Unsigned integer size type."""

t: Literal["I"] = "I"
width: int


class FunctionType(BaseModel):
Expand Down Expand Up @@ -257,7 +256,7 @@ class Qubit(BaseModel):
Type = TypeAliasType(
"Type",
Annotated[
Qubit | Variable | Int | PolyFuncType | Array | TupleType | Sum | Opaque,
Qubit | Variable | USize | PolyFuncType | Array | TupleType | Sum | Opaque,
Field(discriminator="t"),
WrapValidator(_json_custom_error_validator),
],
Expand Down

0 comments on commit 1051e69

Please sign in to comment.