diff --git a/stdlib/2/_threading_local.pyi b/stdlib/2/_threading_local.pyi index 512bf5874..1a7e03de4 100644 --- a/stdlib/2/_threading_local.pyi +++ b/stdlib/2/_threading_local.pyi @@ -1,7 +1,5 @@ # Source: https://hg.python.org/cpython/file/2.7/Lib/_threading_local.py -from typing import Any, List - -__all__: List[str] +from typing import Any class _localbase(object): ... diff --git a/stdlib/2/toaiff.pyi b/stdlib/2/toaiff.pyi index 77334c7f5..f3e1b29d5 100644 --- a/stdlib/2/toaiff.pyi +++ b/stdlib/2/toaiff.pyi @@ -4,8 +4,6 @@ from pipes import Template from typing import Dict, List - -__all__: List[str] table: Dict[str, Template] t: Template uncompress: Template diff --git a/stdlib/3/_threading_local.pyi b/stdlib/3/_threading_local.pyi index 638c93f8b..426496b11 100644 --- a/stdlib/3/_threading_local.pyi +++ b/stdlib/3/_threading_local.pyi @@ -1,8 +1,7 @@ # Source: https://github.com/python/cpython/blob/master/Lib/_threading_local.py -from typing import Any, Dict, List, Tuple +from typing import Any, Dict, Tuple from weakref import ReferenceType -__all__: List[str] localdict = Dict[Any, Any] class _localimpl: diff --git a/stdlib/3/asyncio/__init__.pyi b/stdlib/3/asyncio/__init__.pyi index cada742b4..43e3be9e2 100644 --- a/stdlib/3/asyncio/__init__.pyi +++ b/stdlib/3/asyncio/__init__.pyi @@ -1,5 +1,5 @@ import sys -from typing import List, Type +from typing import Type from asyncio.coroutines import ( coroutine as coroutine, @@ -139,5 +139,3 @@ else: IncompleteReadError as IncompleteReadError, LimitOverrunError as LimitOverrunError, ) - -__all__: List[str] diff --git a/stdlib/3/asyncio/coroutines.pyi b/stdlib/3/asyncio/coroutines.pyi index 480093273..f75dfe5f6 100644 --- a/stdlib/3/asyncio/coroutines.pyi +++ b/stdlib/3/asyncio/coroutines.pyi @@ -1,6 +1,4 @@ -from typing import Any, Callable, List, TypeVar - -__all__: List[str] +from typing import Any, Callable, TypeVar _F = TypeVar('_F', bound=Callable[..., Any]) diff --git a/stdlib/3/asyncio/events.pyi b/stdlib/3/asyncio/events.pyi index e766d9b08..d8c8f2b04 100644 --- a/stdlib/3/asyncio/events.pyi +++ b/stdlib/3/asyncio/events.pyi @@ -10,8 +10,6 @@ from asyncio.protocols import BaseProtocol from asyncio.tasks import Task from asyncio.transports import BaseTransport -__all__: List[str] - _T = TypeVar('_T') _Context = Dict[str, Any] _ExceptionHandler = Callable[[AbstractEventLoop, _Context], Any] diff --git a/stdlib/3/asyncio/exceptions.pyi b/stdlib/3/asyncio/exceptions.pyi index 645481a0a..ecec9560a 100644 --- a/stdlib/3/asyncio/exceptions.pyi +++ b/stdlib/3/asyncio/exceptions.pyi @@ -1,5 +1,5 @@ import sys -from typing import List, Optional +from typing import Optional if sys.version_info >= (3, 8): class CancelledError(BaseException): ... @@ -13,5 +13,3 @@ if sys.version_info >= (3, 8): class LimitOverrunError(Exception): consumed: int def __init__(self, message: str, consumed: int) -> None: ... - - __all__: List[str] diff --git a/stdlib/3/asyncio/futures.pyi b/stdlib/3/asyncio/futures.pyi index 5ce41c23d..bd333d7c8 100644 --- a/stdlib/3/asyncio/futures.pyi +++ b/stdlib/3/asyncio/futures.pyi @@ -14,8 +14,6 @@ if sys.version_info < (3, 8): if sys.version_info >= (3, 7): from contextvars import Context -__all__: List[str] - _T = TypeVar('_T') _S = TypeVar('_S') diff --git a/stdlib/3/asyncio/locks.pyi b/stdlib/3/asyncio/locks.pyi index 3e30cc528..bc78d4b0d 100644 --- a/stdlib/3/asyncio/locks.pyi +++ b/stdlib/3/asyncio/locks.pyi @@ -1,4 +1,4 @@ -from typing import Any, Callable, Generator, List, Type, TypeVar, Union, Optional, Awaitable +from typing import Any, Callable, Generator, Type, TypeVar, Union, Optional, Awaitable from .coroutines import coroutine from .events import AbstractEventLoop @@ -7,8 +7,6 @@ from types import TracebackType _T = TypeVar('_T') -__all__: List[str] - class _ContextManager: def __init__(self, lock: Union[Lock, Semaphore]) -> None: ... def __enter__(self) -> object: ... diff --git a/stdlib/3/asyncio/protocols.pyi b/stdlib/3/asyncio/protocols.pyi index 40592382d..e80f238d2 100644 --- a/stdlib/3/asyncio/protocols.pyi +++ b/stdlib/3/asyncio/protocols.pyi @@ -1,8 +1,5 @@ from asyncio import transports -from typing import List, Optional, Text, Tuple, Union - -__all__: List[str] - +from typing import Optional, Text, Tuple, Union class BaseProtocol: def connection_made(self, transport: transports.BaseTransport) -> None: ... diff --git a/stdlib/3/asyncio/queues.pyi b/stdlib/3/asyncio/queues.pyi index cae88d10c..c908b764c 100644 --- a/stdlib/3/asyncio/queues.pyi +++ b/stdlib/3/asyncio/queues.pyi @@ -1,9 +1,6 @@ from asyncio.events import AbstractEventLoop from .coroutines import coroutine -from typing import Any, Generator, Generic, List, TypeVar, Optional - -__all__: List[str] - +from typing import Any, Generator, Generic, TypeVar, Optional class QueueEmpty(Exception): ... class QueueFull(Exception): ... diff --git a/stdlib/3/asyncio/streams.pyi b/stdlib/3/asyncio/streams.pyi index e1ce96404..c3c8569ca 100644 --- a/stdlib/3/asyncio/streams.pyi +++ b/stdlib/3/asyncio/streams.pyi @@ -1,5 +1,5 @@ import sys -from typing import Any, Awaitable, Callable, Generator, Iterable, List, Optional, Tuple, Union +from typing import Any, Awaitable, Callable, Generator, Iterable, Optional, Tuple, Union from . import coroutines from . import events @@ -8,9 +8,6 @@ from . import transports _ClientConnectedCallback = Callable[[StreamReader, StreamWriter], Optional[Awaitable[None]]] - -__all__: List[str] - if sys.version_info < (3, 8): class IncompleteReadError(EOFError): expected: Optional[int] diff --git a/stdlib/3/asyncio/subprocess.pyi b/stdlib/3/asyncio/subprocess.pyi index 46ed30212..64a489f0f 100644 --- a/stdlib/3/asyncio/subprocess.pyi +++ b/stdlib/3/asyncio/subprocess.pyi @@ -3,9 +3,7 @@ from asyncio import protocols from asyncio import streams from asyncio import transports from asyncio.coroutines import coroutine -from typing import Any, Generator, List, Optional, Text, Tuple, Union, IO - -__all__: List[str] +from typing import Any, Generator, Optional, Text, Tuple, Union, IO PIPE: int STDOUT: int diff --git a/stdlib/3/asyncio/tasks.pyi b/stdlib/3/asyncio/tasks.pyi index d848abb39..7f8f076c6 100644 --- a/stdlib/3/asyncio/tasks.pyi +++ b/stdlib/3/asyncio/tasks.pyi @@ -12,8 +12,6 @@ if sys.version_info >= (3, 8): else: from typing_extensions import Literal -__all__: List[str] - _T = TypeVar('_T') _T1 = TypeVar('_T1') _T2 = TypeVar('_T2') diff --git a/stdlib/3/asyncio/transports.pyi b/stdlib/3/asyncio/transports.pyi index b2ee08a9c..dbd491e18 100644 --- a/stdlib/3/asyncio/transports.pyi +++ b/stdlib/3/asyncio/transports.pyi @@ -2,8 +2,6 @@ import sys from typing import Any, Mapping, List, Optional, Tuple from asyncio.protocols import BaseProtocol -__all__: List[str] - class BaseTransport: def __init__(self, extra: Mapping[Any, Any] = ...) -> None: ... def get_extra_info(self, name: Any, default: Any = ...) -> Any: ...