mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Add more defaults to the stdlib (#9606)
Continuing work towards #8988. The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are: - Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine) - Defaults in non-py311 branches - Defaults for float parameters - Defaults for overloads
This commit is contained in:
@@ -49,7 +49,7 @@ class FileCookieJar(CookieJar):
|
||||
self, filename: StrPath | None = None, delayload: bool = False, policy: CookiePolicy | None = None
|
||||
) -> None: ...
|
||||
else:
|
||||
def __init__(self, filename: str | None = ..., delayload: bool = ..., policy: CookiePolicy | None = ...) -> None: ...
|
||||
def __init__(self, filename: str | None = None, delayload: bool = False, policy: CookiePolicy | None = None) -> None: ...
|
||||
|
||||
def save(self, filename: str | None = None, ignore_discard: bool = False, ignore_expires: bool = False) -> None: ...
|
||||
def load(self, filename: str | None = None, ignore_discard: bool = False, ignore_expires: bool = False) -> None: ...
|
||||
@@ -104,18 +104,18 @@ class DefaultCookiePolicy(CookiePolicy):
|
||||
else:
|
||||
def __init__(
|
||||
self,
|
||||
blocked_domains: Sequence[str] | None = ...,
|
||||
allowed_domains: Sequence[str] | None = ...,
|
||||
netscape: bool = ...,
|
||||
rfc2965: bool = ...,
|
||||
rfc2109_as_netscape: bool | None = ...,
|
||||
hide_cookie2: bool = ...,
|
||||
strict_domain: bool = ...,
|
||||
strict_rfc2965_unverifiable: bool = ...,
|
||||
strict_ns_unverifiable: bool = ...,
|
||||
strict_ns_domain: int = ...,
|
||||
strict_ns_set_initial_dollar: bool = ...,
|
||||
strict_ns_set_path: bool = ...,
|
||||
blocked_domains: Sequence[str] | None = None,
|
||||
allowed_domains: Sequence[str] | None = None,
|
||||
netscape: bool = True,
|
||||
rfc2965: bool = False,
|
||||
rfc2109_as_netscape: bool | None = None,
|
||||
hide_cookie2: bool = False,
|
||||
strict_domain: bool = False,
|
||||
strict_rfc2965_unverifiable: bool = True,
|
||||
strict_ns_unverifiable: bool = False,
|
||||
strict_ns_domain: int = 0,
|
||||
strict_ns_set_initial_dollar: bool = False,
|
||||
strict_ns_set_path: bool = False,
|
||||
) -> None: ...
|
||||
|
||||
def blocked_domains(self) -> tuple[str, ...]: ...
|
||||
|
||||
Reference in New Issue
Block a user