add types.MethodType.__get__ on py313+ (#14190)

This commit is contained in:
Joren Hammudoglu
2025-05-30 18:10:55 +02:00
committed by GitHub
parent 909080620e
commit a92ecca054
+4
View File
@@ -482,6 +482,10 @@ class MethodType:
def __qualname__(self) -> str: ... # inherited from the added function
def __new__(cls, func: Callable[..., Any], instance: object, /) -> Self: ...
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
if sys.version_info >= (3, 13):
def __get__(self, instance: object, owner: type | None = None, /) -> Self: ...
def __eq__(self, value: object, /) -> bool: ...
def __hash__(self) -> int: ...