Skip to content
Myr

Add return type on cookies.py

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

http://docs.python-requests.org/en/master/api/#api-cookies

authored by Dohyeon Kim · committed by GitHub · parent e4d214d · 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.

Trailers

  • http: //docs.python-requests.org/en/master/api/#api-cookies

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