1 from paramiko.sftp_attr import SFTPAttributes
2 from paramiko.util import ClosingContextManager
4 class SFTPHandle(ClosingContextManager):
5 def __init__(self, flags: int = ...) -> None: ...
6 def close(self) -> None: ...
7 def read(self, offset: int, length: int) -> bytes | int: ...
8 def write(self, offset: int, data: bytes) -> int: ...
9 def stat(self) -> int | SFTPAttributes: ...
10 def chattr(self, attr: SFTPAttributes) -> int: ...