mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user