-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathutils.pyi
More file actions
26 lines (23 loc) · 1.14 KB
/
utils.pyi
File metadata and controls
26 lines (23 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This file is part of ssh2-python.
# Copyright (C) 2017-2025 Panos Kittenis
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation, version 2.1.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
from typing import BinaryIO, Iterable, Generator, Tuple
from ssh2.session import Session
def find_eol(buf: bytes, pos: int) -> Tuple[int, int]: ...
def readline(buf: Iterable[bytes]) -> Generator[bytes]: ...
def version(required_version: int = 0) -> str: ...
def ssh2_exit() -> None: ...
def wait_socket(_socket: BinaryIO, session: Session, timeout: int=1) -> None: ...
def handle_error_codes(errcode: int) -> int: ...