mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-01 00:53:23 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from stat import S_IMODE as S_IMODE
|
||||
from types import TracebackType
|
||||
from typing import IO, Any, Callable, ContextManager, List, Sequence, Text, Tuple, Type, Union
|
||||
from typing import IO, Any, Callable, ContextManager, Sequence, Text, Tuple, Type, Union
|
||||
from typing_extensions import Literal
|
||||
|
||||
import paramiko
|
||||
@@ -73,15 +73,15 @@ class Connection:
|
||||
callback: _Callback | None = ...,
|
||||
confirm: bool = ...,
|
||||
) -> paramiko.SFTPAttributes: ...
|
||||
def execute(self, command: str) -> List[str]: ...
|
||||
def execute(self, command: str) -> list[str]: ...
|
||||
def cd(self, remotepath: _Path | None = ...) -> ContextManager[None]: ... # noqa: F811
|
||||
def chdir(self, remotepath: _Path) -> None: ...
|
||||
def cwd(self, remotepath: _Path) -> None: ...
|
||||
def chmod(self, remotepath: _Path, mode: int = ...) -> None: ...
|
||||
def chown(self, remotepath: _Path, uid: int | None = ..., gid: int | None = ...) -> None: ...
|
||||
def getcwd(self) -> str: ...
|
||||
def listdir(self, remotepath: _Path = ...) -> List[str]: ...
|
||||
def listdir_attr(self, remotepath: _Path = ...) -> List[paramiko.SFTPAttributes]: ...
|
||||
def listdir(self, remotepath: _Path = ...) -> list[str]: ...
|
||||
def listdir_attr(self, remotepath: _Path = ...) -> list[paramiko.SFTPAttributes]: ...
|
||||
def mkdir(self, remotepath: _Path, mode: int = ...) -> None: ...
|
||||
def normalize(self, remotepath: _Path) -> str: ...
|
||||
def isdir(self, remotepath: _Path) -> bool: ...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Callable, ContextManager, Iterator, List
|
||||
from typing import Callable, ContextManager, Iterator
|
||||
|
||||
def known_hosts() -> str: ...
|
||||
def st_mode_to_int(val: int) -> int: ...
|
||||
@@ -9,17 +9,17 @@ class WTCallbacks:
|
||||
def dir_cb(self, pathname: str) -> None: ...
|
||||
def unk_cb(self, pathname: str) -> None: ...
|
||||
@property
|
||||
def flist(self) -> List[str]: ...
|
||||
def flist(self) -> list[str]: ...
|
||||
@flist.setter
|
||||
def flist(self, val: List[str]) -> None: ...
|
||||
def flist(self, val: list[str]) -> None: ...
|
||||
@property
|
||||
def dlist(self) -> List[str]: ...
|
||||
def dlist(self) -> list[str]: ...
|
||||
@dlist.setter
|
||||
def dlist(self, val: List[str]) -> None: ...
|
||||
def dlist(self, val: list[str]) -> None: ...
|
||||
@property
|
||||
def ulist(self) -> List[str]: ...
|
||||
def ulist(self) -> list[str]: ...
|
||||
@ulist.setter
|
||||
def ulist(self, val: List[str]) -> None: ...
|
||||
def ulist(self, val: list[str]) -> None: ...
|
||||
|
||||
def path_advance(thepath: str, sep: str = ...) -> Iterator[str]: ...
|
||||
def path_retreat(thepath: str, sep: str = ...) -> Iterator[str]: ...
|
||||
|
||||
Reference in New Issue
Block a user