Skip to content

Commit a92ecca

Browse files
authored
add types.MethodType.__get__ on py313+ (#14190)
1 parent 9090806 commit a92ecca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/types.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,10 @@ class MethodType:
482482
def __qualname__(self) -> str: ... # inherited from the added function
483483
def __new__(cls, func: Callable[..., Any], instance: object, /) -> Self: ...
484484
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
485+
486+
if sys.version_info >= (3, 13):
487+
def __get__(self, instance: object, owner: type | None = None, /) -> Self: ...
488+
485489
def __eq__(self, value: object, /) -> bool: ...
486490
def __hash__(self) -> int: ...
487491

0 commit comments

Comments
 (0)