From e52ec86846311be275e79008562472f19e488d23 Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Mon, 18 Feb 2019 17:27:10 +0100 Subject: [PATCH] style --- Pipfile | 0 trezorlib/_ed25519.py | 2 +- trezorlib/log.py | 2 +- trezorlib/transport/__init__.py | 2 +- trezorlib/transport/bridge.py | 2 +- trezorlib/transport/udp.py | 2 +- trezorlib/transport/webusb.py | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 Pipfile diff --git a/Pipfile b/Pipfile new file mode 100644 index 000000000..e69de29bb diff --git a/trezorlib/_ed25519.py b/trezorlib/_ed25519.py index f1959ac96..53379bfee 100644 --- a/trezorlib/_ed25519.py +++ b/trezorlib/_ed25519.py @@ -32,7 +32,7 @@ arithmetic, so we cannot handle secrets without risking their disclosure. """ import hashlib -from typing import List, NewType, Tuple +from typing import NewType, Tuple Point = NewType("Point", Tuple[int, int, int, int]) diff --git a/trezorlib/log.py b/trezorlib/log.py index 50f778a12..f8ac86e95 100644 --- a/trezorlib/log.py +++ b/trezorlib/log.py @@ -15,7 +15,7 @@ # If not, see . import logging -from typing import Optional, Set, Type +from typing import Optional from . import protobuf diff --git a/trezorlib/transport/__init__.py b/trezorlib/transport/__init__.py index e0f54e999..a98dbd404 100644 --- a/trezorlib/transport/__init__.py +++ b/trezorlib/transport/__init__.py @@ -15,7 +15,7 @@ # If not, see . import logging -from typing import Iterable, List, Type +from typing import Iterable, Type from ..exceptions import TrezorException from ..protobuf import MessageType diff --git a/trezorlib/transport/bridge.py b/trezorlib/transport/bridge.py index b44949b7c..79d9b21ff 100644 --- a/trezorlib/transport/bridge.py +++ b/trezorlib/transport/bridge.py @@ -17,7 +17,7 @@ import logging import struct from io import BytesIO -from typing import Any, Dict, Iterable, Optional +from typing import Any, Dict, Iterable import requests diff --git a/trezorlib/transport/udp.py b/trezorlib/transport/udp.py index 53a8b0ac9..dcea17dda 100644 --- a/trezorlib/transport/udp.py +++ b/trezorlib/transport/udp.py @@ -15,7 +15,7 @@ # If not, see . import socket -from typing import Iterable, Optional, cast +from typing import Iterable, cast from . import TransportException from .protocol import ProtocolBasedTransport, get_protocol diff --git a/trezorlib/transport/webusb.py b/trezorlib/transport/webusb.py index a4c2840ee..33cb1917d 100644 --- a/trezorlib/transport/webusb.py +++ b/trezorlib/transport/webusb.py @@ -18,7 +18,7 @@ import atexit import logging import sys import time -from typing import Iterable, Optional +from typing import Iterable from . import TREZORS, UDEV_RULES_STR, TransportException from .protocol import ProtocolBasedTransport, ProtocolV1