Skip to content

Commit

Permalink
Add __name__/__qualname__/__wrapped__ to staticmethod/`classm…
Browse files Browse the repository at this point in the history
…ethod` (#6281)
  • Loading branch information
AlexWaygood authored Nov 12, 2021
1 parent 49e5b52 commit 59408d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ class staticmethod(object): # Special, only valid as a decorator.
def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ...
def __get__(self, __obj: _T, __type: Type[_T] | None = ...) -> Callable[..., Any]: ...
if sys.version_info >= (3, 10):
__name__: str
__qualname__: str
__wrapped__: Callable[..., Any]
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...

class classmethod(object): # Special, only valid as a decorator.
Expand All @@ -130,6 +133,10 @@ class classmethod(object): # Special, only valid as a decorator.
def __init__(self, __f: Callable[..., Any]) -> None: ...
def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ...
def __get__(self, __obj: _T, __type: Type[_T] | None = ...) -> Callable[..., Any]: ...
if sys.version_info >= (3, 10):
__name__: str
__qualname__: str
__wrapped__: Callable[..., Any]

class type(object):
__base__: type
Expand Down

0 comments on commit 59408d9

Please sign in to comment.