mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-30 06:35:22 +08:00
http/html stubtest fixes (#5208)
This commit is contained in:
@@ -16,7 +16,7 @@ class CookieJar(Iterable[Cookie]):
|
||||
def make_cookies(self, response: HTTPResponse, request: Request) -> Sequence[Cookie]: ...
|
||||
def set_cookie(self, cookie: Cookie) -> None: ...
|
||||
def set_cookie_if_ok(self, cookie: Cookie, request: Request) -> None: ...
|
||||
def clear(self, domain: str = ..., path: str = ..., name: str = ...) -> None: ...
|
||||
def clear(self, domain: Optional[str] = ..., path: Optional[str] = ..., name: Optional[str] = ...) -> None: ...
|
||||
def clear_session_cookies(self) -> None: ...
|
||||
def __iter__(self) -> Iterator[Cookie]: ...
|
||||
def __len__(self) -> int: ...
|
||||
@@ -26,10 +26,12 @@ class FileCookieJar(CookieJar):
|
||||
delayload: bool
|
||||
if sys.version_info >= (3, 8):
|
||||
def __init__(
|
||||
self, filename: Union[str, PathLike[str]] = ..., delayload: bool = ..., policy: Optional[CookiePolicy] = ...
|
||||
self, filename: Optional[Union[str, PathLike[str]]] = ..., delayload: bool = ..., policy: Optional[CookiePolicy] = ...
|
||||
) -> None: ...
|
||||
else:
|
||||
def __init__(self, filename: str = ..., delayload: bool = ..., policy: Optional[CookiePolicy] = ...) -> None: ...
|
||||
def __init__(
|
||||
self, filename: Optional[str] = ..., delayload: bool = ..., policy: Optional[CookiePolicy] = ...
|
||||
) -> None: ...
|
||||
def save(self, filename: Optional[str] = ..., ignore_discard: bool = ..., ignore_expires: bool = ...) -> None: ...
|
||||
def load(self, filename: Optional[str] = ..., ignore_discard: bool = ..., ignore_expires: bool = ...) -> None: ...
|
||||
def revert(self, filename: Optional[str] = ..., ignore_discard: bool = ..., ignore_expires: bool = ...) -> None: ...
|
||||
@@ -126,4 +128,4 @@ class Cookie:
|
||||
@overload
|
||||
def get_nonstandard_attr(self, name: str, default: _T) -> Union[str, _T]: ...
|
||||
def set_nonstandard_attr(self, name: str, value: str) -> None: ...
|
||||
def is_expired(self, now: int = ...) -> bool: ...
|
||||
def is_expired(self, now: Optional[int] = ...) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user