From 95ad7ac9031e71af7f1596401583ca20c8ec6b4d Mon Sep 17 00:00:00 2001 From: Agustin Borgna Date: Tue, 19 Mar 2024 14:42:53 +0000 Subject: [PATCH] lints lints lints --- quantinuum-hugr-py/src/quantinuum_hugr/serialization/ops.py | 3 +-- .../src/quantinuum_hugr/serialization/serial_hugr.py | 2 +- quantinuum-hugr-py/src/quantinuum_hugr/serialization/tys.py | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/quantinuum-hugr-py/src/quantinuum_hugr/serialization/ops.py b/quantinuum-hugr-py/src/quantinuum_hugr/serialization/ops.py index a1c495d8a..ec4e1beb0 100644 --- a/quantinuum-hugr-py/src/quantinuum_hugr/serialization/ops.py +++ b/quantinuum-hugr-py/src/quantinuum_hugr/serialization/ops.py @@ -1,10 +1,9 @@ import inspect import sys from abc import ABC -from typing import Annotated, Any, Literal, cast +from typing import Any, Literal, cast from pydantic import BaseModel, Field, RootModel -from typing_extensions import TypeAliasType from . import tys from .tys import ( diff --git a/quantinuum-hugr-py/src/quantinuum_hugr/serialization/serial_hugr.py b/quantinuum-hugr-py/src/quantinuum_hugr/serialization/serial_hugr.py index ece2fcb8b..355756bce 100644 --- a/quantinuum-hugr-py/src/quantinuum_hugr/serialization/serial_hugr.py +++ b/quantinuum-hugr-py/src/quantinuum_hugr/serialization/serial_hugr.py @@ -1,6 +1,6 @@ from typing import Any, Literal -from pydantic import BaseModel, Field +from pydantic import BaseModel from .ops import NodeID, OpType diff --git a/quantinuum-hugr-py/src/quantinuum_hugr/serialization/tys.py b/quantinuum-hugr-py/src/quantinuum_hugr/serialization/tys.py index f4858da89..cd5444714 100644 --- a/quantinuum-hugr-py/src/quantinuum_hugr/serialization/tys.py +++ b/quantinuum-hugr-py/src/quantinuum_hugr/serialization/tys.py @@ -13,7 +13,6 @@ WrapValidator, ) from pydantic_core import PydanticCustomError -from typing_extensions import TypeAliasType def _json_custom_error_validator(