diff --git a/stdlib/types.pyi b/stdlib/types.pyi index a2926fac6..210b49f44 100644 --- a/stdlib/types.pyi +++ b/stdlib/types.pyi @@ -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