mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user