Skip to content
Myr

Merge pull request #4755 from dohvis/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add return type on cookies.py

authored by Nate Prewitt · committed by GitHub · parents e4d214d, 72d96a6 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:requests/cookies.py+2 added
509 unmodified lines
510 :param cookie_dict: Dict of key/values to insert into CookieJar.511 :param cookiejar: (optional) A cookiejar to add the cookies to.512 :param overwrite: (optional) If False, will not replace cookies513 already in the jar with new ones.514 :rtype: CookieJar515 """516 if cookiejar is None:517 cookiejar = RequestsCookieJar()518
10 unmodified lines
529 """Add cookies to cookiejar and returns a merged CookieJar.530531 :param cookiejar: CookieJar object to add the cookies to.532 :param cookies: Dictionary or CookieJar object to be added.533 :rtype: CookieJar534 """535 if not isinstance(cookiejar, cookielib.CookieJar):536 raise ValueError('You can only merge into CookieJar')537
11 unmodified lines