Add 'Literal[...]' to typing_extension stubs (#2664)

This pull request adds 'Literal' to the typing_extension stubs
and serves as the dual of this PR:
https://github.com/python/typing/pull/591

For background context, here's the associated PEP draft:
https://github.com/Michael0x2a/peps/pull/1
This commit is contained in:
Michael Lee
2018-12-04 15:46:23 -08:00
committed by Sebastian Rittau
parent c8890b0f93
commit 6f061bbf1e

View File

@@ -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