mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
Bump mypy to 1.11.1 (#12463)
This commit is contained in:
@@ -43,6 +43,8 @@ class Timeout(BaseException):
|
||||
# when timeout_value is provided we unfortunately get no type checking on *args, **kwargs, because
|
||||
# ParamSpec does not allow mixing in additional keyword arguments
|
||||
@overload
|
||||
def with_timeout(seconds: float | None, function: Callable[..., _T1], *args: Any, timeout_value: _T2, **kwds: Any) -> _T1 | _T2: ... # type: ignore[misc]
|
||||
def with_timeout(
|
||||
seconds: float | None, function: Callable[..., _T1], *args: Any, timeout_value: _T2, **kwds: Any
|
||||
) -> _T1 | _T2: ...
|
||||
@overload
|
||||
def with_timeout(seconds: float | None, function: Callable[_P, _T], *args: _P.args, **kwds: _P.kwargs) -> _T: ...
|
||||
|
||||
Reference in New Issue
Block a user