Skip to content

Commit b9d1567

Browse files
authored
[paramiko] Fix keepalive parameter type from int to float (#14596)
1 parent 81639ac commit b9d1567

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stubs/paramiko/paramiko/packet.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Packetizer:
5757
def get_mac_size_in(self) -> int: ...
5858
def get_mac_size_out(self) -> int: ...
5959
def need_rekey(self) -> bool: ...
60-
def set_keepalive(self, interval: int, callback: Callable[[], object]) -> None: ...
60+
def set_keepalive(self, interval: float, callback: Callable[[], object]) -> None: ...
6161
def read_timer(self) -> None: ...
6262
def start_handshake(self, timeout: float) -> None: ...
6363
def handshake_timed_out(self) -> bool: ...

stubs/paramiko/paramiko/transport.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class Transport(Thread, ClosingContextManager):
136136
def open_sftp_client(self) -> SFTPClient | None: ...
137137
def send_ignore(self, byte_count: int | None = None) -> None: ...
138138
def renegotiate_keys(self) -> None: ...
139-
def set_keepalive(self, interval: int) -> None: ...
139+
def set_keepalive(self, interval: float) -> None: ...
140140
def global_request(self, kind: str, data: Iterable[Any] | None = None, wait: bool = True) -> Message | None: ...
141141
def accept(self, timeout: float | None = None) -> Channel | None: ...
142142
def connect(

0 commit comments

Comments
 (0)