File tree Expand file tree Collapse file tree 4 files changed +2
-9
lines changed
Expand file tree Collapse file tree 4 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 11from typing import TypedDict
22
3- from typing_extensions import NotRequired
4-
53from client .types import PaginatedQuery
64from 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
Original file line number Diff line number Diff line change 11from typing import Literal , TypedDict
22
3- from typing_extensions import NotRequired
4-
53
64PayloadData = dict [str , str | int | float ]
75
Original file line number Diff line number Diff line change 11from typing import TypedDict
22
3- from typing_extensions import NotRequired
4-
53from client .types .blocks import Block
64
75
Original file line number Diff line number Diff line change @@ -23,5 +23,4 @@ requests==2.32.3
2323responses == 0.10.15
2424setuptools == 70.1.0
2525six == 1.16.0
26- typing_extensions == 4.15.0
2726urllib3 == 2.2.2
You can’t perform that action at this time.
0 commit comments