Bump pyright to v1.1.360 (#11810)

This commit is contained in:
Alex Waygood
2024-04-24 13:09:16 +01:00
committed by GitHub
parent 29db988c0a
commit d0f2be92ab
20 changed files with 100 additions and 46 deletions

View File

@@ -26,7 +26,7 @@ class postfork(Generic[_P, _T]):
@overload
def __init__(self: postfork[..., Any], f: int) -> None: ...
@overload
def __init__(self: postfork[_P, _T], f: Callable[_P, _T]) -> None: ...
def __init__(self: postfork[_P, _T], f: Callable[_P, _T]) -> None: ... # pyright: ignore[reportInvalidTypeVarUse] #11780
@overload
def __call__(self, f: Callable[_P2, _T2], /) -> postfork[_P2, _T2]: ...
@overload
@@ -70,7 +70,7 @@ class mulefunc(Generic[_P, _T]):
@overload
def __init__(self: mulefunc[..., Any], f: int) -> None: ...
@overload
def __init__(self: mulefunc[_P, _T], f: Callable[_P, _T]) -> None: ...
def __init__(self: mulefunc[_P, _T], f: Callable[_P, _T]) -> None: ... # pyright: ignore[reportInvalidTypeVarUse] #11780
def real_call(self, *args: _P.args, **kwargs: _P.kwargs) -> None: ...
@overload
def __call__(self, f: Callable[_P2, _T2], /) -> mulefunc[_P2, _T2]: ...