Removed a bunch of unused import symbols detected by pyright. (#5060)

Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
Eric Traut
2021-02-23 11:46:46 -07:00
committed by GitHub
parent 507ca60ff8
commit c7c025ae08
9 changed files with 10 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, Tuple, Union
from typing import Any
from typing_extensions import Literal
# _tkinter is meant to be only used internally by tkinter, but some tkinter

View File

@@ -1,5 +1,5 @@
from _typeshed.xml import DOMImplementation
from typing import Any, Callable, Dict, Iterable, Optional, Tuple, Union
from typing import Callable, Dict, Iterable, Optional, Tuple, Union
well_known_implementations: Dict[str, str]
registered: Dict[str, Callable[[], DOMImplementation]]

View File

@@ -1,4 +1,4 @@
from typing import Dict, List, Optional, Pattern, Text, Tuple, Union
from typing import Dict, List, Pattern, Text, Tuple, Union
from typing_extensions import Literal
_DEFAULT_DELIMITER: str

View File

@@ -1,4 +1,4 @@
from typing import Any, Callable, Generic, Iterable, Mapping, Optional, Tuple, TypeVar
from typing import Any, Callable, Generic, Iterable, Mapping, Optional, TypeVar
from ._base import Executor, Future

View File

@@ -1,4 +1,3 @@
import sys
from hashlib import _Hash
from typing import Any, ClassVar, Dict, Generic, Optional, Set, TypeVar, Union
@@ -6,20 +5,11 @@ from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric.ec import (
EllipticCurvePrivateKey,
EllipticCurvePrivateKeyWithSerialization,
EllipticCurvePrivateNumbers,
EllipticCurvePublicKey,
EllipticCurvePublicKeyWithSerialization,
EllipticCurvePublicNumbers,
)
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey, Ed25519PublicKey
from cryptography.hazmat.primitives.asymmetric.rsa import (
RSAPrivateKey,
RSAPrivateKeyWithSerialization,
RSAPrivateNumbers,
RSAPublicKey,
RSAPublicKeyWithSerialization,
RSAPublicNumbers,
)
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPublicKey
from cryptography.hazmat.primitives.asymmetric.utils import Prehashed
from cryptography.hazmat.primitives.hashes import HashAlgorithm

View File

@@ -1,5 +1,5 @@
from datetime import date, datetime, time
from typing import Any, Dict, Iterable, List, Optional, Sequence, Tuple, Union
from typing import Any, Dict, List, Optional, Sequence, Tuple, Union
Scalar = Union[int, float, str, datetime, date, time]
Result = Union[Tuple[Scalar, ...], Dict[str, Scalar]]

View File

@@ -1,6 +1,6 @@
from typing import Match
from typing import Any, Match
class JSONDecoder(object):
def __init__(self, **kwargs): ...
def __init__(self, **kwargs: Any) -> None: ...
def decode(self, s: str, _w: Match[str], _PY3: bool): ...
def raw_decode(self, s: str, idx: int, _w: Match[str], _PY3: bool): ...

View File

@@ -1,4 +1,3 @@
import sys
from io import TextIOWrapper
from typing import Any, Optional, Tuple

View File

@@ -1,5 +1,5 @@
from io import BytesIO
from typing import Mapping, Optional, Pattern, Sequence, Tuple, Union
from typing import Any, Mapping, Optional, Pattern, Sequence, Tuple, Union
from waitress.adjustments import Adjustments
from waitress.receiver import ChunkedReceiver, FixedStreamReceiver
@@ -38,6 +38,6 @@ class HTTPRequestParser:
def split_uri(uri: bytes) -> Tuple[str, str, bytes, str, str]: ...
def get_header_lines(header: bytes) -> Sequence[bytes]: ...
first_line_re: Pattern
first_line_re: Pattern[Any]
def crack_first_line(line: str) -> Tuple[bytes, bytes, bytes]: ...