mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Improve FunctionType.__get__ with @overload (#7005)
This commit is contained in:
@@ -58,7 +58,10 @@ class FunctionType:
|
||||
closure: tuple[_Cell, ...] | None = ...,
|
||||
) -> None: ...
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
|
||||
def __get__(self, obj: object | None, type: type | None = ...) -> MethodType: ...
|
||||
@overload
|
||||
def __get__(self, obj: None, type: type) -> FunctionType: ...
|
||||
@overload
|
||||
def __get__(self, obj: object, type: type | None = ...) -> MethodType: ...
|
||||
|
||||
LambdaType = FunctionType
|
||||
|
||||
|
||||
Reference in New Issue
Block a user