mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
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:
committed by
Sebastian Rittau
parent
c8890b0f93
commit
6f061bbf1e
1
third_party/2and3/typing_extensions.pyi
vendored
1
third_party/2and3/typing_extensions.pyi
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user