Updates this jar with cookies from another CookieJar or dict-like
( # type: ignore[override]
self, other: CookieJar | SupportsKeysAndGetItem[str, str]
)
| 389 | return super().set_cookie(cookie, *args, **kwargs) |
| 390 | |
| 391 | def update( # type: ignore[override] |
| 392 | self, other: CookieJar | SupportsKeysAndGetItem[str, str] |
| 393 | ) -> None: |
| 394 | """Updates this jar with cookies from another CookieJar or dict-like""" |
| 395 | if isinstance(other, cookielib.CookieJar): |
| 396 | for cookie in other: |
| 397 | self.set_cookie(copy.copy(cookie)) |
| 398 | else: |
| 399 | super().update(other) |
| 400 | |
| 401 | def _find( |
| 402 | self, name: str, domain: str | None = None, path: str | None = None |