mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-25 05:11:09 +08:00
Current code that initializes the things I've changed, to demonstrate that the object is initialized this way: * headers: https://github.com/requests/requests/blob/9713289e74/requests/sessions.py#L345 * proxies: https://github.com/requests/requests/blob/9713289e74/requests/sessions.py#L354 * hooks: https://github.com/requests/requests/blob/9713289e74/requests/sessions.py#L357 * params: https://github.com/requests/requests/blob/9713289e74/requests/sessions.py#L362 * cookies: https://github.com/requests/requests/blob/9713289e74/requests/sessions.py#L388 from what I can tell nothing in the official requests API ever creates a session other than through `__init__`.