mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Removed imported symbols that are not accessed or re-exported from within third_party stubs (part 1). These were all identified as unused symbols by the pyright type checker and language server. (#4388)
Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
2
third_party/2and3/Crypto/Cipher/AES.pyi
vendored
2
third_party/2and3/Crypto/Cipher/AES.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Text, Union
|
||||
from typing import Text, Union
|
||||
|
||||
from .blockalgo import BlockAlgo
|
||||
|
||||
|
||||
2
third_party/2and3/Crypto/Cipher/ARC2.pyi
vendored
2
third_party/2and3/Crypto/Cipher/ARC2.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Text, Union
|
||||
from typing import Text, Union
|
||||
|
||||
from .blockalgo import BlockAlgo
|
||||
|
||||
|
||||
2
third_party/2and3/Crypto/Cipher/ARC4.pyi
vendored
2
third_party/2and3/Crypto/Cipher/ARC4.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Text, Union
|
||||
from typing import Text, Union
|
||||
|
||||
__revision__: str
|
||||
|
||||
|
||||
2
third_party/2and3/Crypto/Cipher/DES.pyi
vendored
2
third_party/2and3/Crypto/Cipher/DES.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Text, Union
|
||||
from typing import Text, Union
|
||||
|
||||
from .blockalgo import BlockAlgo
|
||||
|
||||
|
||||
2
third_party/2and3/Crypto/Cipher/XOR.pyi
vendored
2
third_party/2and3/Crypto/Cipher/XOR.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Text, Union
|
||||
from typing import Text, Union
|
||||
|
||||
__revision__: str
|
||||
|
||||
|
||||
3
third_party/2and3/atomicwrites/__init__.pyi
vendored
3
third_party/2and3/atomicwrites/__init__.pyi
vendored
@@ -1,6 +1,5 @@
|
||||
import sys
|
||||
from _typeshed import AnyPath
|
||||
from typing import IO, Any, AnyStr, Callable, ContextManager, Generic, Optional, Text, Type, Union
|
||||
from typing import IO, Any, AnyStr, Callable, ContextManager, Optional, Text, Type
|
||||
|
||||
def replace_atomic(src: AnyStr, dst: AnyStr) -> None: ...
|
||||
def move_atomic(src: AnyStr, dst: AnyStr) -> None: ...
|
||||
|
||||
2
third_party/2and3/bleach/sanitizer.pyi
vendored
2
third_party/2and3/bleach/sanitizer.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, Container, Dict, Iterable, List, Optional, Pattern, Text, Type, Union
|
||||
from typing import Any, Callable, Container, Dict, Iterable, List, Optional, Pattern, Text, Union
|
||||
|
||||
ALLOWED_TAGS: List[Text]
|
||||
ALLOWED_ATTRIBUTES: Dict[Text, List[Text]]
|
||||
|
||||
2
third_party/2and3/boto/compat.pyi
vendored
2
third_party/2and3/boto/compat.pyi
vendored
@@ -1,8 +1,6 @@
|
||||
import sys
|
||||
from typing import Any
|
||||
|
||||
from six.moves import http_client
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
from base64 import encodebytes as encodebytes
|
||||
else:
|
||||
|
||||
2
third_party/2and3/boto/connection.pyi
vendored
2
third_party/2and3/boto/connection.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, Optional, Text
|
||||
from typing import Any, Optional
|
||||
|
||||
from six.moves import http_client
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from typing import Any, Iterable, Iterator, Optional
|
||||
|
||||
from .bucket import Bucket
|
||||
from .key import Key
|
||||
|
||||
def bucket_lister(
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from logging import Logger
|
||||
from typing import Dict, Optional, Pattern
|
||||
from typing_extensions import TypedDict
|
||||
|
||||
2
third_party/2and3/click/_termui_impl.pyi
vendored
2
third_party/2and3/click/_termui_impl.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import ContextManager, Generic, Iterator, Optional, TypeVar
|
||||
from typing import Generic, Optional, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
|
||||
1
third_party/2and3/click/core.pyi
vendored
1
third_party/2and3/click/core.pyi
vendored
@@ -3,7 +3,6 @@ from typing import (
|
||||
Callable,
|
||||
ContextManager,
|
||||
Dict,
|
||||
Generator,
|
||||
Iterable,
|
||||
List,
|
||||
Mapping,
|
||||
|
||||
2
third_party/2and3/click/termui.pyi
vendored
2
third_party/2and3/click/termui.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import IO, Any, Callable, Generator, Iterable, List, Optional, Text, Tuple, TypeVar, Union, overload
|
||||
from typing import IO, Any, Callable, Generator, Iterable, Optional, Text, Tuple, TypeVar, Union, overload
|
||||
|
||||
from click._termui_impl import ProgressBar as _ProgressBar
|
||||
from click.core import _ConvertibleType
|
||||
|
||||
2
third_party/2and3/click/testing.pyi
vendored
2
third_party/2and3/click/testing.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import IO, Any, BinaryIO, ContextManager, Dict, Iterable, List, Mapping, Optional, Text, Tuple, Union
|
||||
from typing import IO, Any, BinaryIO, ContextManager, Dict, Iterable, List, Mapping, Optional, Text, Union
|
||||
|
||||
from .core import BaseCommand
|
||||
|
||||
|
||||
2
third_party/2and3/click/utils.pyi
vendored
2
third_party/2and3/click/utils.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import IO, Any, AnyStr, Callable, Generic, Iterator, List, Optional, Text, TypeVar, Union
|
||||
from typing import IO, Any, AnyStr, Generic, Iterator, List, Optional, Text, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Optional, Tuple
|
||||
from typing import Tuple
|
||||
|
||||
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
from cryptography.hazmat.backends.interfaces import HMACBackend
|
||||
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
||||
|
||||
class Poly1305(object):
|
||||
def __init__(self, key: bytes) -> None: ...
|
||||
def finalize(self) -> bytes: ...
|
||||
|
||||
2
third_party/2and3/datetimerange/__init__.pyi
vendored
2
third_party/2and3/datetimerange/__init__.pyi
vendored
@@ -1,5 +1,5 @@
|
||||
import datetime
|
||||
from typing import Any, Iterable, Optional, Union
|
||||
from typing import Iterable, Optional, Union
|
||||
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
|
||||
2
third_party/2and3/dateutil/parser.pyi
vendored
2
third_party/2and3/dateutil/parser.pyi
vendored
@@ -1,5 +1,5 @@
|
||||
from datetime import datetime, tzinfo
|
||||
from typing import IO, Any, Callable, Dict, List, Mapping, Optional, Text, Tuple, Union
|
||||
from typing import IO, Any, Dict, List, Mapping, Optional, Text, Tuple, Union
|
||||
|
||||
_FileOrStr = Union[bytes, Text, IO[str], IO[Any]]
|
||||
|
||||
|
||||
2
third_party/2and3/dateutil/relativedelta.pyi
vendored
2
third_party/2and3/dateutil/relativedelta.pyi
vendored
@@ -1,5 +1,5 @@
|
||||
from datetime import date, datetime, timedelta
|
||||
from typing import Any, List, Optional, SupportsFloat, TypeVar, Union, overload
|
||||
from typing import Optional, SupportsFloat, TypeVar, Union, overload
|
||||
|
||||
from ._common import weekday
|
||||
|
||||
|
||||
2
third_party/2and3/singledispatch.pyi
vendored
2
third_party/2and3/singledispatch.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, Generic, Mapping, Optional, TypeVar, overload
|
||||
from typing import Any, Callable, Generic, Mapping, TypeVar, overload
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
|
||||
3
third_party/2and3/toml.pyi
vendored
3
third_party/2and3/toml.pyi
vendored
@@ -1,7 +1,6 @@
|
||||
import datetime
|
||||
import sys
|
||||
from _typeshed import StrPath, SupportsWrite
|
||||
from typing import IO, Any, List, Mapping, MutableMapping, Optional, Text, Type, Union
|
||||
from typing import IO, Any, List, Mapping, MutableMapping, Text, Type, Union
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
_PathLike = StrPath
|
||||
|
||||
2
third_party/2and3/ujson.pyi
vendored
2
third_party/2and3/ujson.pyi
vendored
@@ -1,6 +1,6 @@
|
||||
# Stubs for ujson
|
||||
# See: https://pypi.python.org/pypi/ujson
|
||||
from typing import IO, Any, AnyStr, Optional
|
||||
from typing import IO, Any, AnyStr
|
||||
|
||||
__version__: str
|
||||
|
||||
|
||||
Reference in New Issue
Block a user