Merge pull request #93 from ddfisher/master

Remove contents of problematic asyncio __all__s
This commit is contained in:
David Fisher
2016-02-25 12:04:44 -08:00
10 changed files with 11 additions and 40 deletions

View File

@@ -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

View File

@@ -1,7 +1,6 @@
from typing import Callable, Any, TypeVar
__all__ = ['coroutine',
'iscoroutinefunction', 'iscoroutine']
__all__ = ... # type: str
_T = TypeVar('_T')

View File

@@ -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')

View File

@@ -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')

View File

@@ -1,7 +1,6 @@
from typing import AnyStr
__all__ = ['BaseProtocol', 'Protocol', 'DatagramProtocol',
'SubprocessProtocol']
__all__ = ... # type: str
from asyncio import transports

View File

@@ -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

View File

@@ -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: ...

View File

@@ -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

View File

@@ -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

View File

@@ -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: ...