Skip to content

Commit e32392c

Browse files
superbobrycopybara-github
authored andcommitted
Added the missing 3.13 definitions to typing stubs
PiperOrigin-RevId: 812757557
1 parent 762b86d commit e32392c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pytype/stubs/builtins/typing.pytd

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,6 @@ class ParamSpecArgs: ...
655655
class ParamSpecKwargs: ...
656656

657657
class TypeGuard(bool, Generic[_T]): ...
658-
class TypeIs(bool, Generic[_T]): ...
659658

660659
def is_typeddict(tp) -> bool: ...
661660

@@ -695,3 +694,12 @@ class TypeAliasType:
695694
def __getitem__(self, parameters: Any) -> Any: ...
696695
def __or__(self, right: Any) -> Any: ...
697696
def __ror__(self, left: Any) -> Any: ...
697+
698+
# Python 3.13
699+
700+
def is_protocol(tp: type, /) -> bool: ...
701+
def get_protocol_members(tp: type, /) -> frozenset[str]: ...
702+
class _NoDefaultType: ...
703+
NoDefault: _NoDefaultType
704+
class TypeIs(bool, Generic[_T]): ...
705+
ReadOnly: Any

0 commit comments

Comments
 (0)