mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
add types.MethodType.__get__ on py313+ (#14190)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user