|
1 | 1 | import struct |
2 | 2 | from enum import IntEnum |
3 | | -from typing import Optional, Tuple |
| 3 | +from typing import Optional |
4 | 4 | from hashlib import sha256 |
5 | 5 | import rlp |
6 | 6 | from web3 import Web3 |
@@ -213,7 +213,7 @@ def eip712_filtering_trusted_name(self, |
213 | 213 | def eip712_filtering_raw(self, name: str, sig: bytes, discarded: bool): |
214 | 214 | return self._exchange_async(self._cmd_builder.eip712_filtering_raw(name, sig, discarded)) |
215 | 215 |
|
216 | | - def serialize_tx(self, tx_params: dict, tx_raw: Optional[bytes] = None) -> Tuple[bytes, bytes]: |
| 216 | + def serialize_tx(self, tx_params: dict, tx_raw: Optional[bytes] = None) -> tuple[bytes, bytes]: |
217 | 217 | """Computes the serialized TX and its hash""" |
218 | 218 |
|
219 | 219 | if tx_raw is not None: |
@@ -338,7 +338,7 @@ def provide_trusted_name_v2(self, |
338 | 338 | chain_id: int, |
339 | 339 | nft_id: Optional[int] = None, |
340 | 340 | challenge: Optional[int] = None, |
341 | | - not_valid_after: Optional[Tuple[int]] = None) -> RAPDU: |
| 341 | + not_valid_after: Optional[tuple[int, int, int]] = None) -> RAPDU: |
342 | 342 | payload = format_tlv(FieldTag.STRUCT_VERSION, 2) |
343 | 343 | payload += format_tlv(FieldTag.TRUSTED_NAME, name) |
344 | 344 | payload += format_tlv(FieldTag.ADDRESS, addr) |
|
0 commit comments