mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
parent
e52ec86846
commit
1105ba2039
@ -32,7 +32,7 @@ arithmetic, so we cannot handle secrets without risking their disclosure.
|
||||
"""
|
||||
|
||||
import hashlib
|
||||
from typing import NewType, Tuple
|
||||
from typing import List, NewType, Tuple
|
||||
|
||||
Point = NewType("Point", Tuple[int, int, int, int])
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
|
||||
|
||||
import logging
|
||||
from typing import Optional
|
||||
from typing import Optional, Set, Type
|
||||
|
||||
from . import protobuf
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
|
||||
|
||||
import logging
|
||||
from typing import Iterable, Type
|
||||
from typing import Iterable, List, Type
|
||||
|
||||
from ..exceptions import TrezorException
|
||||
from ..protobuf import MessageType
|
||||
|
@ -17,7 +17,7 @@
|
||||
import logging
|
||||
import struct
|
||||
from io import BytesIO
|
||||
from typing import Any, Dict, Iterable
|
||||
from typing import Any, Dict, Iterable, Optional
|
||||
|
||||
import requests
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
|
||||
|
||||
import socket
|
||||
from typing import Iterable, cast
|
||||
from typing import Iterable, Optional, cast
|
||||
|
||||
from . import TransportException
|
||||
from .protocol import ProtocolBasedTransport, get_protocol
|
||||
|
@ -18,7 +18,7 @@ import atexit
|
||||
import logging
|
||||
import sys
|
||||
import time
|
||||
from typing import Iterable
|
||||
from typing import Iterable, Optional
|
||||
|
||||
from . import TREZORS, UDEV_RULES_STR, TransportException
|
||||
from .protocol import ProtocolBasedTransport, ProtocolV1
|
||||
|
Loading…
Reference in New Issue
Block a user