Skip to content

Commit

Permalink
Import from typing_extensions instead of typing (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn authored Jan 22, 2025
1 parent e122ca6 commit 5ad253c
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/ethereum/berlin/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.crypto.hash import keccak256
from ethereum.muir_glacier import trie as previous_trie
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/byzantium/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.crypto.hash import keccak256
from ethereum.spurious_dragon import trie as previous_trie
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/cancun/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.crypto.hash import keccak256
from ethereum.shanghai import trie as previous_trie
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/constantinople/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.byzantium import trie as previous_trie
from ethereum.crypto.hash import keccak256
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/dao_fork/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.crypto.hash import keccak256
from ethereum.homestead import trie as previous_trie
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/frontier/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.crypto.hash import keccak256
from ethereum.utils.hexadecimal import hex_to_bytes
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/gray_glacier/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.arrow_glacier import trie as previous_trie
from ethereum.crypto.hash import keccak256
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/homestead/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.crypto.hash import keccak256
from ethereum.frontier import trie as previous_trie
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/istanbul/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.constantinople import trie as previous_trie
from ethereum.crypto.hash import keccak256
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/london/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.berlin import trie as previous_trie
from ethereum.crypto.hash import keccak256
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/muir_glacier/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.crypto.hash import keccak256
from ethereum.istanbul import trie as previous_trie
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/paris/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.crypto.hash import keccak256
from ethereum.gray_glacier import trie as previous_trie
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/shanghai/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.crypto.hash import keccak256
from ethereum.paris import trie as previous_trie
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/spurious_dragon/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.crypto.hash import keccak256
from ethereum.tangerine_whistle import trie as previous_trie
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/tangerine_whistle/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
Tuple,
TypeVar,
Union,
assert_type,
cast,
)

from ethereum_types.bytes import Bytes
from ethereum_types.frozen import slotted_freezable
from ethereum_types.numeric import U256, Uint
from typing_extensions import assert_type

from ethereum.crypto.hash import keccak256
from ethereum.dao_fork import trie as previous_trie
Expand Down

0 comments on commit 5ad253c

Please sign in to comment.