mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
Fix stubs that assumed reexport without as
This commit is contained in:
@@ -7,12 +7,19 @@
|
||||
# TODO UserString
|
||||
# TODO more abstract base classes (interfaces in mypy)
|
||||
|
||||
# These are not exported.
|
||||
from typing import (
|
||||
TypeVar, Iterable, Generic, Iterator, Dict, overload,
|
||||
Mapping, List, Tuple, Callable, Set, Sequence, Sized,
|
||||
Mapping, List, Tuple, Callable, Sized,
|
||||
Optional, Union
|
||||
)
|
||||
import typing
|
||||
# These are exported.
|
||||
# TODO reexport more.
|
||||
from typing import (
|
||||
MutableMapping as MutableMapping,
|
||||
Sequence as Sequence,
|
||||
AbstractSet as Set,
|
||||
)
|
||||
|
||||
_T = TypeVar('_T')
|
||||
_KT = TypeVar('_KT')
|
||||
@@ -23,9 +30,6 @@ _VT = TypeVar('_VT')
|
||||
namedtuple = object()
|
||||
|
||||
|
||||
MutableMapping = typing.MutableMapping
|
||||
|
||||
|
||||
class deque(Sized, Iterable[_T], Generic[_T]):
|
||||
maxlen = 0 # type: Optional[int] # TODO readonly
|
||||
def __init__(self, iterable: Iterable[_T] = None,
|
||||
|
||||
Reference in New Issue
Block a user