Skip to content

Commit

Permalink
Add 'Literal[...]' to typing_extension stubs
Browse files Browse the repository at this point in the history
This pull request adds 'Literal' to the typing_extension stubs
and serves as the dual of this PR:
python/typing#591

For background context, here's the associated PEP draft:
Michael0x2a/peps#1
  • Loading branch information
Michael0x2a committed Dec 3, 2018
1 parent 7b76fb9 commit c62e37f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions third_party/2and3/typing_extensions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def runtime(cls: _TC) -> _TC: ...
Protocol: _SpecialForm = ...
Final: _SpecialForm = ...
def final(f: _F) -> _F: ...
Literal: _SpecialForm = ...

if sys.version_info >= (3, 3):
from typing import ChainMap as ChainMap
Expand Down

0 comments on commit c62e37f

Please sign in to comment.