mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Merge pull request #93 from ddfisher/master
Remove contents of problematic asyncio __all__s
This commit is contained in:
@@ -59,12 +59,4 @@ from asyncio.queues import (
|
||||
QueueEmpty as QueueEmpty,
|
||||
)
|
||||
|
||||
__all__ = (coroutines.__all__ +
|
||||
protocols.__all__ +
|
||||
streams.__all__ +
|
||||
subprocess.__all__ +
|
||||
transports.__all__ +
|
||||
futures.__all__ +
|
||||
tasks.__all__ +
|
||||
events.__all__ +
|
||||
queues.__all__)
|
||||
__all__ = ... # type: str
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from typing import Callable, Any, TypeVar
|
||||
|
||||
__all__ = ['coroutine',
|
||||
'iscoroutinefunction', 'iscoroutine']
|
||||
__all__ = ... # type: str
|
||||
|
||||
_T = TypeVar('_T')
|
||||
|
||||
|
||||
@@ -3,15 +3,7 @@ from abc import ABCMeta, abstractmethod
|
||||
from asyncio.futures import Future
|
||||
from asyncio.coroutines import coroutine
|
||||
|
||||
# __all__ = ['AbstractServer',
|
||||
# 'TimerHandle',
|
||||
# 'get_event_loop_policy', 'set_event_loop_policy',
|
||||
# 'set_event_loop', 'new_event_loop',
|
||||
# 'get_child_watcher', 'set_child_watcher',
|
||||
# ]
|
||||
|
||||
|
||||
__all__ = ['AbstractEventLoopPolicy', 'AbstractEventLoop', 'Handle', 'get_event_loop']
|
||||
__all__ = ... # type: str
|
||||
|
||||
_T = TypeVar('_T')
|
||||
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
from typing import Any, Union, Callable, TypeVar, List, Generic, Iterable, Generator
|
||||
from .events import AbstractEventLoop
|
||||
# __all__ = ['CancelledError', 'TimeoutError',
|
||||
# 'InvalidStateError',
|
||||
# 'wrap_future',
|
||||
# ]
|
||||
__all__ = ['Future']
|
||||
|
||||
__all__ = ... # type: str
|
||||
|
||||
_T = TypeVar('_T')
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from typing import AnyStr
|
||||
|
||||
__all__ = ['BaseProtocol', 'Protocol', 'DatagramProtocol',
|
||||
'SubprocessProtocol']
|
||||
__all__ = ... # type: str
|
||||
|
||||
from asyncio import transports
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from typing import TypeVar, Generic
|
||||
|
||||
__all__ = ['Queue', 'PriorityQueue', 'LifoQueue', 'JoinableQueue',
|
||||
'QueueFull', 'QueueEmpty']
|
||||
__all__ = ... # type: str
|
||||
|
||||
from asyncio.events import AbstractEventLoop
|
||||
from .coroutines import coroutine
|
||||
|
||||
@@ -8,10 +8,7 @@ from . import events
|
||||
from . import protocols
|
||||
from . import transports
|
||||
|
||||
__all__ = ['StreamReader', 'StreamWriter', 'StreamReaderProtocol',
|
||||
'open_connection', 'start_server',
|
||||
'IncompleteReadError',
|
||||
'LimitOverrunError']
|
||||
__all__ = ... # type: str
|
||||
|
||||
class IncompleteReadError(EOFError):
|
||||
def __init__(self, partial: str, expected: int) -> None: ...
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import Any, AnyStr, Tuple, Union
|
||||
|
||||
__all__ = ['create_subprocess_exec', 'create_subprocess_shell']
|
||||
__all__ = ... # type: str
|
||||
|
||||
from asyncio import events
|
||||
from asyncio import protocols
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
from typing import Any, Iterable, TypeVar, Set, Dict, List, TextIO, Union, Tuple, Generic, Callable, Generator
|
||||
|
||||
__all__ = ['Task', 'sleep',
|
||||
'FIRST_COMPLETED', 'FIRST_EXCEPTION', 'ALL_COMPLETED',
|
||||
'wait', 'wait_for']
|
||||
__all__ = ... # type: str
|
||||
|
||||
from .events import AbstractEventLoop
|
||||
from .futures import Future
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
from typing import Dict, Any, TypeVar, Mapping, List
|
||||
|
||||
__all__ = ['BaseTransport', 'ReadTransport', 'WriteTransport',
|
||||
'Transport', 'DatagramTransport', 'SubprocessTransport',
|
||||
]
|
||||
__all__ = ... # type: str
|
||||
|
||||
class BaseTransport:
|
||||
def __init__(self, extra: Mapping[Any, Any] = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user