Various stubtest fixes (#5215)

This commit is contained in:
hatal175
2021-04-15 05:14:07 +03:00
committed by GitHub
parent 3536e2a080
commit bf201c8201
8 changed files with 78 additions and 42 deletions

View File

@@ -1,9 +1,11 @@
from _typeshed import AnyPath
from typing import Dict, List, Optional, Tuple
class NetrcParseError(Exception):
filename: Optional[str]
lineno: Optional[int]
msg: str
def __init__(self, msg: str, filename: Optional[AnyPath] = ..., lineno: Optional[int] = ...) -> None: ...
# (login, account, password) tuple
_NetrcTuple = Tuple[str, Optional[str], Optional[str]]
@@ -11,5 +13,5 @@ _NetrcTuple = Tuple[str, Optional[str], Optional[str]]
class netrc:
hosts: Dict[str, _NetrcTuple]
macros: Dict[str, List[str]]
def __init__(self, file: str = ...) -> None: ...
def __init__(self, file: Optional[AnyPath] = ...) -> None: ...
def authenticators(self, host: str) -> Optional[_NetrcTuple]: ...