mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
@@ -6,14 +6,29 @@
|
||||
|
||||
# These are not exported.
|
||||
from typing import (
|
||||
TypeVar, Iterable, Generic, Iterator, Dict, overload,
|
||||
Mapping, List, Tuple, Callable, Sized, Any, Type,
|
||||
Optional, Union
|
||||
TypeVar, Generic, Dict, overload, List, Tuple,
|
||||
Callable, Any, Type, Optional, Union
|
||||
)
|
||||
# These are exported.
|
||||
# TODO reexport more.
|
||||
from typing import (
|
||||
Container as Container,
|
||||
Hashable as Hashable,
|
||||
Iterable as Iterable,
|
||||
Iterator as Iterator,
|
||||
Sized as Sized,
|
||||
Generator as Generator,
|
||||
ByteString as ByteString,
|
||||
Awaitable as Awaitable,
|
||||
Coroutine as Coroutine,
|
||||
AsyncIterable as AsyncIterable,
|
||||
AsyncIterator as AsyncIterator,
|
||||
Reversible as Reversible,
|
||||
Mapping as Mapping,
|
||||
MappingView as MappingView,
|
||||
ItemsView as ItemsView,
|
||||
KeysView as KeysView,
|
||||
ValuesView as ValuesView,
|
||||
MutableMapping as MutableMapping,
|
||||
Sequence as Sequence,
|
||||
MutableSequence as MutableSequence,
|
||||
|
||||
@@ -6,9 +6,33 @@ import sys
|
||||
if sys.version_info >= (3, 3):
|
||||
from . import (
|
||||
Container as Container,
|
||||
Hashable as Hashable,
|
||||
Iterable as Iterable,
|
||||
Iterator as Iterator,
|
||||
Sized as Sized,
|
||||
Mapping as Mapping,
|
||||
MutableMapping as MutableMapping,
|
||||
Sequence as Sequence,
|
||||
MutableSequence as MutableSequence,
|
||||
Set as Set,
|
||||
MutableSet as MutableSet,
|
||||
MappingView as MappingView,
|
||||
ItemsView as ItemsView,
|
||||
KeysView as KeysView,
|
||||
ValuesView as ValuesView,
|
||||
)
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
from . import (
|
||||
Generator as Generator,
|
||||
ByteString as ByteString,
|
||||
Awaitable as Awaitable,
|
||||
Coroutine as Coroutine,
|
||||
AsyncIterable as AsyncIterable,
|
||||
AsyncIterator as AsyncIterator,
|
||||
)
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
from . import (
|
||||
Reversible as Reversible,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user