massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / pysftp / pysftp / helpers.pyi
1 from typing import Callable, ContextManager, Iterator
2
3 def known_hosts() -> str: ...
4 def st_mode_to_int(val: int) -> int: ...
5
6 class WTCallbacks:
7     def __init__(self) -> None: ...
8     def file_cb(self, pathname: str) -> None: ...
9     def dir_cb(self, pathname: str) -> None: ...
10     def unk_cb(self, pathname: str) -> None: ...
11     @property
12     def flist(self) -> list[str]: ...
13     @flist.setter
14     def flist(self, val: list[str]) -> None: ...
15     @property
16     def dlist(self) -> list[str]: ...
17     @dlist.setter
18     def dlist(self, val: list[str]) -> None: ...
19     @property
20     def ulist(self) -> list[str]: ...
21     @ulist.setter
22     def ulist(self, val: list[str]) -> None: ...
23
24 def path_advance(thepath: str, sep: str = ...) -> Iterator[str]: ...
25 def path_retreat(thepath: str, sep: str = ...) -> Iterator[str]: ...
26 def reparent(newparent: str, oldpath: str) -> str: ...
27
28 _PathCallback = Callable[[str], None]
29
30 def walktree(
31     localpath: str, fcallback: _PathCallback, dcallback: _PathCallback, ucallback: _PathCallback, recurse: bool = ...
32 ) -> None: ...
33 def cd(localpath: str | None = ...) -> ContextManager[None]: ...