Skip to content

Commit 4f7982c

Browse files
committed
Add missing imports and enhance NoReturn comment
Changes made: - Add missing `Type` re-export - Add missing `Awaitable` re-export - Add TODO note to `NoReturn`.
1 parent 462dd33 commit 4f7982c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

third_party/2and3/typing_extensions.pyi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ from typing import Deque as Deque
88
from typing import NewType as NewType
99
from typing import overload as overload
1010
from typing import Text as Text
11+
from typing import Type as Type
1112
from typing import TYPE_CHECKING as TYPE_CHECKING
1213

1314
if sys.version_info >= (3, 3):
@@ -17,6 +18,7 @@ if sys.version_info >= (3, 5):
1718
from typing import AsyncIterable as AsyncIterable
1819
from typing import AsyncIterator as AsyncIterator
1920
from typing import AsyncContextManager as AsyncContextManager
21+
from typing import Awaitable as Awaitable
2022
from typing import Coroutine as Coroutine
2123

2224
if sys.version_info >= (3, 6):
@@ -25,4 +27,7 @@ if sys.version_info >= (3, 6):
2527
# Return type that indicates a function does not return.
2628
# This type is equivalent to the None type, but the no-op Union is necessary to
2729
# distinguish the None type from the None value.
30+
#
31+
# TODO: Replace with direct import from typing once NoReturn is added to
32+
# typing.pyi.
2833
NoReturn = typing.Union[None]

0 commit comments

Comments
 (0)