diff --git a/stubs/scp/scp.pyi b/stubs/scp/scp.pyi index 8bff7f766b13..52516fb2beaa 100644 --- a/stubs/scp/scp.pyi +++ b/stubs/scp/scp.pyi @@ -1,4 +1,3 @@ -from _typeshed import FloatInt from collections.abc import Callable, Iterable from pathlib import PurePath from types import TracebackType @@ -29,7 +28,7 @@ def asunicode_win(s: bytes | str) -> str: ... class SCPClient: transport: Transport buff_size: int - socket_timeout: FloatInt | None + socket_timeout: float | int | None channel: Channel | None preserve_times: bool sanitize: Callable[[bytes], bytes] @@ -39,7 +38,7 @@ class SCPClient: self, transport: Transport, buff_size: int = 16384, - socket_timeout: FloatInt | None = 10.0, + socket_timeout: float | int | None = 10.0, progress: Callable[[str | bytes, int, int], None] | None = None, progress4: Callable[[str | bytes, int, int, tuple[str, int]], None] | None = None, sanitize: Callable[[bytes], bytes] | Literal[False] = ...,