From 7c11ae03de33250e289b5001b5acf2163f9954dd Mon Sep 17 00:00:00 2001 From: Semyon Proshev Date: Thu, 16 Nov 2017 19:37:36 +0300 Subject: [PATCH] Add `__qualname__` to functions and methods (#1750) --- stdlib/3/types.pyi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdlib/3/types.pyi b/stdlib/3/types.pyi index f9f46c5fd..c65369ac5 100644 --- a/stdlib/3/types.pyi +++ b/stdlib/3/types.pyi @@ -29,6 +29,7 @@ class FunctionType: __dict__ = ... # type: Dict[str, Any] __globals__ = ... # type: Dict[str, Any] __name__ = ... # type: str + __qualname__ = ... # type: str __annotations__ = ... # type: Dict[str, Any] __kwdefaults__ = ... # type: Dict[str, Any] def __call__(self, *args: Any, **kwargs: Any) -> Any: ... @@ -140,10 +141,13 @@ class MethodType: __func__ = ... # type: _StaticFunctionType __self__ = ... # type: object __name__ = ... # type: str + __qualname__ = ... # type: str def __init__(self, func: Callable, obj: object) -> None: ... def __call__(self, *args: Any, **kwargs: Any) -> Any: ... class BuiltinFunctionType: __self__ = ... # type: Union[object, ModuleType] + __name__ = ... # type: str + __qualname__ = ... # type: str def __call__(self, *args: Any, **kwargs: Any) -> Any: ... BuiltinMethodType = BuiltinFunctionType