From d848bc48d63fd6bc5d54a5f4b5985d391db8aea3 Mon Sep 17 00:00:00 2001 From: Agustin Borgna Date: Thu, 11 Jan 2024 10:01:53 +0000 Subject: [PATCH] drop future.__annotations_ --- guppy/hugr/raw.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/guppy/hugr/raw.py b/guppy/hugr/raw.py index a49cbadd..cefd842f 100644 --- a/guppy/hugr/raw.py +++ b/guppy/hugr/raw.py @@ -1,5 +1,3 @@ -from __future__ import annotations - from typing import Any, Literal import ormsgpack @@ -24,11 +22,11 @@ def to_json(self) -> str: return self.model_dump_json() @classmethod - def unpackb(cls, b: bytes) -> RawHugr: + def unpackb(cls, b: bytes) -> "RawHugr": """Decode a msgpack-encoded Hugr.""" return cls(**ormsgpack.unpackb(b, option=ormsgpack.OPT_NON_STR_KEYS)) @classmethod - def load_json(cls, json: dict[Any, Any]) -> RawHugr: + def load_json(cls, json: dict[Any, Any]) -> "RawHugr": """Decode a JSON-encoded Hugr.""" return cls(**json)