diff --git a/stdlib/_tkinter.pyi b/stdlib/_tkinter.pyi index 9f9e851bc..378b04202 100644 --- a/stdlib/_tkinter.pyi +++ b/stdlib/_tkinter.pyi @@ -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 diff --git a/stdlib/xml/dom/domreg.pyi b/stdlib/xml/dom/domreg.pyi index 6f479b097..bf63ff09e 100644 --- a/stdlib/xml/dom/domreg.pyi +++ b/stdlib/xml/dom/domreg.pyi @@ -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]] diff --git a/stubs/emoji/emoji/core.pyi b/stubs/emoji/emoji/core.pyi index 03c0b4fa9..8fcd223d6 100644 --- a/stubs/emoji/emoji/core.pyi +++ b/stubs/emoji/emoji/core.pyi @@ -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 diff --git a/stubs/futures/concurrent/futures/thread.pyi b/stubs/futures/concurrent/futures/thread.pyi index fa5720024..6e272f38d 100644 --- a/stubs/futures/concurrent/futures/thread.pyi +++ b/stubs/futures/concurrent/futures/thread.pyi @@ -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 diff --git a/stubs/jwt/jwt/algorithms.pyi b/stubs/jwt/jwt/algorithms.pyi index eb76c6590..cb875074e 100644 --- a/stubs/jwt/jwt/algorithms.pyi +++ b/stubs/jwt/jwt/algorithms.pyi @@ -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 diff --git a/stubs/pymssql/pymssql.pyi b/stubs/pymssql/pymssql.pyi index 4f625626f..599f9d4b6 100644 --- a/stubs/pymssql/pymssql.pyi +++ b/stubs/pymssql/pymssql.pyi @@ -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]] diff --git a/stubs/simplejson/simplejson/decoder.pyi b/stubs/simplejson/simplejson/decoder.pyi index a0631945c..0d726afc5 100644 --- a/stubs/simplejson/simplejson/decoder.pyi +++ b/stubs/simplejson/simplejson/decoder.pyi @@ -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): ... diff --git a/stubs/waitress/waitress/compat.pyi b/stubs/waitress/waitress/compat.pyi index 3e8fd859c..42c62f43e 100644 --- a/stubs/waitress/waitress/compat.pyi +++ b/stubs/waitress/waitress/compat.pyi @@ -1,4 +1,3 @@ -import sys from io import TextIOWrapper from typing import Any, Optional, Tuple diff --git a/stubs/waitress/waitress/parser.pyi b/stubs/waitress/waitress/parser.pyi index 551bad0a3..48a3d210f 100644 --- a/stubs/waitress/waitress/parser.pyi +++ b/stubs/waitress/waitress/parser.pyi @@ -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]: ...