|
1 | 1 | import sys
|
2 | 2 | import typing
|
3 |
| -from typing import ( |
4 |
| - ClassVar, ContextManager, Counter, DefaultDict, Deque, |
5 |
| - NewType, overload, Text, TYPE_CHECKING, |
6 |
| -) |
| 3 | +from typing import ClassVar as ClassVar |
| 4 | +from typing import ContextManager as ContextManager |
| 5 | +from typing import Counter as Counter |
| 6 | +from typing import DefaultDict as DefaultDict |
| 7 | +from typing import Deque as Deque |
| 8 | +from typing import NewType as NewType |
| 9 | +from typing import overload as overload |
| 10 | +from typing import Text as Text |
| 11 | +from typing import TYPE_CHECKING as TYPE_CHECKING |
7 | 12 |
|
8 | 13 | if sys.version_info >= (3, 3):
|
9 |
| - from typing import ChainMap |
| 14 | + from typing import ChainMap as ChainMap |
10 | 15 |
|
11 | 16 | if sys.version_info >= (3, 5):
|
12 |
| - from typing import ( |
13 |
| - AsyncIterable, AsyncIterator, AsyncContextManager, Coroutine, |
14 |
| - ) |
| 17 | + from typing import AsyncIterable as AsyncIterable |
| 18 | + from typing import AsyncIterator as AsyncIterator |
| 19 | + from typing import AsyncContextManager as AsyncContextManager |
| 20 | + from typing import Coroutine as Coroutine |
15 | 21 |
|
16 | 22 | if sys.version_info >= (3, 6):
|
17 |
| - from typing import AsyncGenerator |
| 23 | + from typing import AsyncGenerator as AsyncGenerator |
18 | 24 |
|
19 | 25 | # Return type that indicates a function does not return.
|
20 | 26 | # This type is equivalent to the None type, but the no-op Union is necessary to
|
|
0 commit comments