mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 11:32:07 +08:00
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:
committed by
GitHub
parent
c55cf13d8e
commit
2ba90a65c0
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -12,8 +12,6 @@ from queue import Queue
|
||||
|
||||
JoinableQueue = Queue
|
||||
|
||||
__all__ = ... # type: List[str]
|
||||
|
||||
|
||||
class DummyProcess(threading.Thread):
|
||||
_children = ... # type: weakref.WeakKeyDictionary
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -4,7 +4,6 @@ import sys
|
||||
|
||||
_Str = Union[bytes, str]
|
||||
|
||||
__all__ = ... # type: Tuple[str]
|
||||
|
||||
uses_relative = ... # type: List[str]
|
||||
uses_netloc = ... # type: List[str]
|
||||
|
||||
1
third_party/2and3/dateutil/parser.pyi
vendored
1
third_party/2and3/dateutil/parser.pyi
vendored
@@ -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]
|
||||
|
||||
1
third_party/2and3/dateutil/relativedelta.pyi
vendored
1
third_party/2and3/dateutil/relativedelta.pyi
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user