Skip to content

Commit 2ec34e2

Browse files
committed
wip
1 parent 17f4de0 commit 2ec34e2

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

client/types/blocks.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from typing import TypedDict
22

3-
from typing_extensions import NotRequired
4-
53
from client.types import PaginatedQuery
64
from client.types.transactions import Transaction
75

@@ -26,7 +24,7 @@ class Block(TypedDict):
2624
transactionCount: int
2725

2826

29-
class BlockResponse(TypedDict):
27+
class BlockResponse(TypedDict, total=False):
3028
hash: str
3129
number: int
3230
confirmations: int
@@ -36,7 +34,7 @@ class BlockResponse(TypedDict):
3634
total: str
3735
proposer: str
3836
publicKey: str
39-
username: NotRequired[str]
37+
username: str
4038
transactionsRoot: str
4139
payloadSize: int
4240
parentHash: str

client/types/evm.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from typing import Literal, TypedDict
22

3-
from typing_extensions import NotRequired
4-
53

64
PayloadData = dict[str, str | int | float]
75

client/types/node.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from typing import TypedDict
22

3-
from typing_extensions import NotRequired
4-
53
from client.types.blocks import Block
64

75

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ requests==2.32.3
2323
responses==0.10.15
2424
setuptools==70.1.0
2525
six==1.16.0
26-
typing_extensions==4.15.0
2726
urllib3==2.2.2

0 commit comments

Comments
 (0)