mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -2,7 +2,7 @@ from _typeshed import Self, SupportsRead, SupportsReadline
|
||||
from socket import socket
|
||||
from ssl import SSLContext
|
||||
from types import TracebackType
|
||||
from typing import Any, Callable, Dict, Iterable, Iterator, List, TextIO, Tuple, Type
|
||||
from typing import Any, Callable, Iterable, Iterator, TextIO, Tuple, Type
|
||||
from typing_extensions import Literal
|
||||
|
||||
MSG_OOB: int
|
||||
@@ -85,10 +85,10 @@ class FTP:
|
||||
def retrlines(self, cmd: str, callback: Callable[[str], Any] | None = ...) -> str: ...
|
||||
def storlines(self, cmd: str, fp: SupportsReadline[bytes], callback: Callable[[bytes], Any] | None = ...) -> str: ...
|
||||
def acct(self, password: str) -> str: ...
|
||||
def nlst(self, *args: str) -> List[str]: ...
|
||||
def nlst(self, *args: str) -> list[str]: ...
|
||||
# Technically only the last arg can be a Callable but ...
|
||||
def dir(self, *args: str | Callable[[str], None]) -> None: ...
|
||||
def mlsd(self, path: str = ..., facts: Iterable[str] = ...) -> Iterator[Tuple[str, Dict[str, str]]]: ...
|
||||
def mlsd(self, path: str = ..., facts: Iterable[str] = ...) -> Iterator[Tuple[str, dict[str, str]]]: ...
|
||||
def rename(self, fromname: str, toname: str) -> str: ...
|
||||
def delete(self, filename: str) -> str: ...
|
||||
def cwd(self, dirname: str) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user