From fa1001862dbb9e0520b66ffd80d98ace0e6ec953 Mon Sep 17 00:00:00 2001 From: Razeen Shaheed Date: Wed, 2 Dec 2026 23:52:49 +0530 Subject: [PATCH] [scp] Replace FloatInt with float | int Co-Authored-By: Claude Opus 5.5 --- stubs/scp/scp.pyi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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] = ...,