Fix stdlib stubtest after latest typing-extensions release (#11923)

This commit is contained in:
Alex Waygood
2024-05-16 16:53:19 -04:00
committed by GitHub
parent 77d6947479
commit 5b0816e784
5 changed files with 46 additions and 10 deletions

View File

@@ -128,6 +128,9 @@ if sys.version_info >= (3, 11):
if sys.version_info >= (3, 12):
__all__ += ["TypeAliasType", "override"]
if sys.version_info >= (3, 13):
__all__ += ["get_protocol_members", "is_protocol", "NoDefault"]
Any = object()
def final(f: _T) -> _T: ...
@@ -985,3 +988,7 @@ if sys.version_info >= (3, 12):
if sys.version_info >= (3, 13):
def is_protocol(tp: type, /) -> bool: ...
def get_protocol_members(tp: type, /) -> frozenset[str]: ...
@final
class _NoDefaultType: ...
NoDefault: _NoDefaultType