Skip to content

Commit

Permalink
drop future.__annotations_
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Jan 11, 2024
1 parent 06b3b16 commit d848bc4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions guppy/hugr/raw.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Any, Literal

import ormsgpack
Expand All @@ -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)

0 comments on commit d848bc4

Please sign in to comment.