Remove __all__ = ... from stubs (#2161)

The presence of a __all__ causes everything to not get picked up by
import *, which among other things breaks the new six.moves stubs.
This commit is contained in:
Michael J. Sullivan
2018-05-24 19:00:07 -07:00
committed by GitHub
parent c55cf13d8e
commit 2ba90a65c0
10 changed files with 0 additions and 12 deletions

View File

@@ -1,6 +1,5 @@
from typing import Any, IO, Sequence, Tuple, Union, List, Dict
__all__ = ... # type: List[str]
DEFAULTSECT = ... # type: str
MAX_INTERPOLATION_DEPTH = ... # type: int

View File

@@ -12,8 +12,6 @@ from threading import Lock, RLock, Semaphore, BoundedSemaphore
from threading import Event
from Queue import Queue
__all__ = ... # type: List[str]
class DummyProcess(threading.Thread):
_children = ... # type: weakref.WeakKeyDictionary

View File

@@ -1,7 +1,6 @@
from Queue import Queue
from typing import Any, List, Optional, Tuple, Type
__all__ = ... # type: List[str]
families = ... # type: List[None]
class Connection(object):

View File

@@ -2,7 +2,6 @@ from typing import Any, Iterable, List, Optional, Union, TextIO, Tuple, TypeVar
_T = TypeVar('_T')
__all__ = ... # type: List[str]
class Popen3:
sts = ... # type: int

View File

@@ -2,7 +2,6 @@
from typing import Any, Callable, Dict, Generator, Iterator, List, Tuple, Union, Iterable
__all__ = ... # type: List[str]
__author__ = ... # type: str
__credits__ = ... # type: str

View File

@@ -12,8 +12,6 @@ from queue import Queue
JoinableQueue = Queue
__all__ = ... # type: List[str]
class DummyProcess(threading.Thread):
_children = ... # type: weakref.WeakKeyDictionary

View File

@@ -2,7 +2,6 @@ from typing import Any, List, Optional, Tuple, Type, TypeVar
from queue import Queue
__all__ = ... # type: List[str]
families = ... # type: List[None]
_TConnection = TypeVar('_TConnection', bound=Connection)

View File

@@ -4,7 +4,6 @@ import sys
_Str = Union[bytes, str]
__all__ = ... # type: Tuple[str]
uses_relative = ... # type: List[str]
uses_netloc = ... # type: List[str]

View File

@@ -3,7 +3,6 @@ from datetime import datetime, tzinfo
_FileOrStr = Union[bytes, Text, IO[str], IO[Any]]
__all__ = ... # type: List[str]
class parserinfo(object):
JUMP = ... # type: List[str]

View File

@@ -3,7 +3,6 @@ from datetime import date, datetime, timedelta
from ._common import weekday
__all__ = ... # type: List[str]
_SelfT = TypeVar('_SelfT', bound=relativedelta)
_DateT = TypeVar('_DateT', date, datetime)