stdlib: add argument default values (#9501)

This commit is contained in:
Jelle Zijlstra
2023-01-18 00:37:34 -08:00
committed by GitHub
parent 6cb934291f
commit ddfaca3200
272 changed files with 2529 additions and 2467 deletions

View File

@@ -8,7 +8,7 @@ class NetrcParseError(Exception):
filename: str | None
lineno: int | None
msg: str
def __init__(self, msg: str, filename: StrOrBytesPath | None = ..., lineno: int | None = ...) -> None: ...
def __init__(self, msg: str, filename: StrOrBytesPath | None = None, lineno: int | None = None) -> None: ...
# (login, account, password) tuple
if sys.version_info >= (3, 11):
@@ -19,5 +19,5 @@ else:
class netrc:
hosts: dict[str, _NetrcTuple]
macros: dict[str, list[str]]
def __init__(self, file: StrOrBytesPath | None = ...) -> None: ...
def __init__(self, file: StrOrBytesPath | None = None) -> None: ...
def authenticators(self, host: str) -> _NetrcTuple | None: ...