Skip to content

Commit

Permalink
Annotate tuple with 16
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Dec 20, 2024
1 parent 6783252 commit d89ff7e
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 16 deletions.
3 changes: 2 additions & 1 deletion src/ethereum/arrow_glacier/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -98,7 +99,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/berlin/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -98,7 +99,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/byzantium/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -98,7 +99,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/cancun/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -101,7 +102,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/constantinople/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -98,7 +99,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/dao_fork/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -98,7 +99,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/frontier/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -97,7 +98,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/gray_glacier/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -98,7 +99,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/homestead/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -98,7 +99,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/istanbul/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -98,7 +99,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/london/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -98,7 +99,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/muir_glacier/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -98,7 +99,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/paris/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -98,7 +99,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/shanghai/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -101,7 +102,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/spurious_dragon/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -98,7 +99,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down
3 changes: 2 additions & 1 deletion src/ethereum/tangerine_whistle/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import copy
from dataclasses import dataclass, field
from typing import (
Annotated,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -98,7 +99,7 @@ class ExtensionNode:
class BranchNode:
"""Branch node in the Merkle Trie"""

subnodes: Tuple[rlp.Extended, ...]
subnodes: Annotated[Tuple[rlp.Extended], 16]
value: rlp.Extended


Expand Down

0 comments on commit d89ff7e

Please sign in to comment.