Add various undocumented functions from ftplib (#4633)

Fixes #4632
This commit is contained in:
Peter Law
2020-10-08 21:20:48 +01:00
committed by GitHub
parent 36f2ffa07e
commit fa0ba1eda8

View File

@@ -4,6 +4,7 @@ from socket import socket
from ssl import SSLContext
from types import TracebackType
from typing import Any, BinaryIO, Callable, Dict, Iterable, Iterator, List, Optional, Text, TextIO, Tuple, Type, TypeVar, Union
from typing_extensions import Literal
_T = TypeVar("_T")
_IntOrStr = Union[int, Text]
@@ -150,3 +151,15 @@ if sys.version_info < (3,):
def get_account(self, host: Text) -> Tuple[Optional[str], Optional[str], Optional[str]]: ...
def get_macros(self) -> List[str]: ...
def get_macro(self, macro: Text) -> Tuple[str, ...]: ...
def parse150(resp: str) -> Optional[int]: ... # undocumented
def parse227(resp: str) -> Tuple[str, int]: ... # undocumented
def parse229(resp: str, peer: Any) -> Tuple[str, int]: ... # undocumented
def parse257(resp: str) -> str: ... # undocumented
def ftpcp(
source: FTP,
sourcename: str,
target: FTP,
targetname: str = ...,
type: Literal["A", "I"] = ...,
) -> None: ... # undocumented