8000 Merge pull request #93 from ddfisher/master · python/typeshed@c8630a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8630a2

Browse files
committed
Merge pull request #93 from ddfisher/master
Remove contents of problematic asyncio __all__s
2 parents 2840e71 + c50e0e6 commit c8630a2

File tree

10 files changed

+11
-40
lines changed

10 files changed

+11
-40
lines changed

stdlib/3.4/asyncio/__init__.pyi

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,4 @@ from asyncio.queues import (
5959
QueueEmpty as QueueEmpty,
6060
)
6161

62-
__all__ = (coroutines.__all__ +
63-
protocols.__all__ +
64-
streams.__all__ +
65-
subprocess.__all__ +
66-
transports.__all__ +
67-
futures.__all__ +
68-
tasks.__all__ +
69-
events.__all__ +
70-
queues.__all__)
62+
__all__ = ... # type: str

stdlib/3.4/asyncio/coroutines.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import Callable, Any, TypeVar
22

3-
__all__ = ['coroutine',
4-
'iscoroutinefunction', 'iscoroutine']
3+
__all__ = ... # type: str
54

65
_T = TypeVar('_T')
76

stdlib/3.4/asyncio/events.pyi

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,7 @@ from abc import ABCMeta, abstractmethod
33
from asyncio.futures import Future
44
from asyncio.coroutines import coroutine
55

6-
# __all__ = ['AbstractServer',
7-
# 'TimerHandle',
8-
# 'get_event_loop_policy', 'set_event_loop_policy',
9-
# 'set_event_loop', 'new_event_loop',
10-
# 'get_child_watcher', 'set_child_watcher',
11-
# ]
12-
13-
14-
__all__ = ['AbstractEventLoopPolicy', 'AbstractEventLoop', 'Handle', 'get_event_loop']
6+
__all__ = ... # type: str
157

168
_T = TypeVar('_T')
179

stdlib/3.4/asyncio/futures.pyi

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
from typing import Any, Union, Callable, TypeVar, List, Generic, Iterable, Generator
22
from .events import AbstractEventLoop
3-
# __all__ = ['CancelledError', 'TimeoutError',
4-
# 'InvalidStateError',
5-
# 'wrap_future',
6-
# ]
7-
__all__ = ['Future']
3+
4+
__all__ = ... # type: str
85

96
_T = TypeVar('_T')
107

stdlib/3.4/asyncio/protocols.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import AnyStr
22

3-
__all__ = ['BaseProtocol', 'Protocol', 'DatagramProtocol',
4-
'SubprocessProtocol']
3+
__all__ = ... # type: str
54

65
from asyncio import transports
76

stdlib/3.4/asyncio/queues.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import TypeVar, Generic
22

3-
__all__ = ['Queue', 'PriorityQueue', 'LifoQueue', 'JoinableQueue',
4-
'QueueFull', 'QueueEmpty']
3+
__all__ = ... # type: str
54

65
from asyncio.events import AbstractEventLoop
76
from .coroutines import coroutine

stdlib/3.4/asyncio/streams.pyi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ from . import events
88
from . import protocols
99
from . import transports
1010

11-
__all__ = ['StreamReader', 'StreamWriter', 'StreamReaderProtocol',
12-
'open_connection', 'start_server',
13-
'IncompleteReadError',
14-
'LimitOverrunError']
11+
__all__ = ... # type: str
1512

1613
class IncompleteReadError(EOFError):
1714
def __init__(self, partial: str, expected: int) -> None: ...

stdlib/3.4/asyncio/subprocess.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any, AnyStr, Tuple, Union
22

3-
__all__ = ['create_subprocess_exec', 'create_subprocess_shell']
3+
__all__ = ... # type: str
44

55
from asyncio import events
66
from asyncio import protocols

stdlib/3.4/asyncio/tasks.pyi

Lines changed: 1 addition & 3 deletions
< C145 tbody>
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from typing import Any, Iterable, TypeVar, Set, Dict, List, TextIO, Union, Tuple, Generic, Callable, Generator
22

3-
__all__ = ['Task', 'sleep',
4-
'FIRST_COMPLETED', 'FIRST_EXCEPTION', 'ALL_COMPLETED',
5-
'wait', 'wait_for']
3+
__all__ = ... # type: str
64

75
from .events import AbstractEventLoop
86
from .futures import Future

stdlib/3.4/asyncio/transports.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from typing import Dict, Any, TypeVar, Mapping, List
22

3-
__all__ = ['BaseTransport', 'ReadTransport', 'WriteTransport',
4-
'Transport', 'DatagramTransport', 'SubprocessTransport',
5-
]
3+
__all__ = ... # type: str
64

75
class BaseTransport:
86
def __init__(self, extra: Mapping[Any, Any] = ...) -> None: ...

0 commit comments

Comments
 (0)
0