Skip to content

Commit 050d5a4

Browse files
committed
Add PEP 613 TypeAlias stub to typing_extensions
At the moment this special marker annotation described in PEP 613 exists only in typing_extensions module (see python/typing#732).
1 parent 32c638c commit 050d5a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

third_party/2and3/typing_extensions.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,6 @@ def get_type_hints(
7171

7272
Annotated: _SpecialForm = ...
7373
_AnnotatedAlias: Any = ... # undocumented
74+
75+
# TypeAlias is a (non-subscriptable) special form.
76+
TypeAlias: object = ...

0 commit comments

Comments
 (0)