Skip to content

Commit

Permalink
fix: missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Nov 8, 2024
1 parent 7babe77 commit 411b7a7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
7 changes: 4 additions & 3 deletions evmspec/trace/call.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from enum import Enum
from functools import cached_property
from typing import ClassVar, Literal, Optional

from hexbytes import HexBytes
from msgspec import UNSET, Raw, json, field

from evmspec._enum import StringToIntEnumMeta
from evmspec.data import Address, _decode_hook
from evmspec.trace._base import _ActionBase, _FilterTraceBase
from evmspec.trace._base import _ActionBase, _FilterTraceBase, _ResultBase


class Type(Enum, metaclass=StringToIntEnumMeta):
Expand All @@ -22,7 +23,7 @@ class Action(
forbid_unknown_fields=True,
omit_defaults=True,
repr_omit_defaults=True,
):
): # type: ignore [call-arg]
"""
Action type for contract calls.
"""
Expand Down Expand Up @@ -51,7 +52,7 @@ class Trace(
forbid_unknown_fields=True,
omit_defaults=True,
repr_omit_defaults=True,
):
): # type: ignore [call-arg]
type: ClassVar[Literal["call"]] = "call"

_action: Raw = field(name="action")
Expand Down
7 changes: 4 additions & 3 deletions evmspec/trace/create.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from functools import cached_property
from typing import ClassVar, Literal

from hexbytes import HexBytes
from msgspec import Raw, json, field

from evmspec.data import Address, _decode_hook
from evmspec.trace._base import _ActionBase, _FilterTraceBase
from evmspec.trace._base import _ActionBase, _FilterTraceBase, _ResultBase


class Action(
Expand All @@ -14,7 +15,7 @@ class Action(
forbid_unknown_fields=True,
omit_defaults=True,
repr_omit_defaults=True,
):
): # type: ignore [call-arg]
"""
Action type for contract creations.
"""
Expand All @@ -40,7 +41,7 @@ class Trace(
forbid_unknown_fields=True,
omit_defaults=True,
repr_omit_defaults=True,
):
): # type: ignore [call-arg]
type: ClassVar[Literal["create"]] = "create"

_action: Raw = field(name="action")
Expand Down
5 changes: 3 additions & 2 deletions evmspec/trace/reward.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from enum import Enum
from functools import cached_property
from typing import ClassVar, Literal

from msgspec import Raw, json, field
Expand All @@ -20,7 +21,7 @@ class Action(
forbid_unknown_fields=True,
omit_defaults=True,
repr_omit_defaults=True,
):
): # type: ignore [call-arg]
"""
Action type for rewards.
"""
Expand All @@ -40,7 +41,7 @@ class Trace(
forbid_unknown_fields=True,
omit_defaults=True,
repr_omit_defaults=True,
):
): # type: ignore [call-arg]

type: ClassVar[Literal["reward"]] = "reward"

Expand Down
4 changes: 2 additions & 2 deletions evmspec/trace/suicide.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Action(
forbid_unknown_fields=True,
omit_defaults=True,
repr_omit_defaults=True,
):
): # type: ignore [call-arg]
"""
Action type for contract suicides.
"""
Expand All @@ -24,7 +24,7 @@ class Trace(
forbid_unknown_fields=True,
omit_defaults=True,
repr_omit_defaults=True,
):
): # type: ignore [call-arg]

type: ClassVar[Literal["suicide"]] = "suicide"

Expand Down

0 comments on commit 411b7a7

Please sign in to comment.