Sourced from requests's releases.
v2.34.2
2.34.2 (2026-05-14)
- Moved
headersinput type back toMappingto avoid invariance issues withMutableMappingand inferred dict types. Users callingRequest.headers.update()may need to narrow typing in their code. (#7441)Full Changelog: https://github.com/psf/requests/blob/main/HISTORY.md#2342-2026-05-14
v2.34.1
2.34.1 (2026-05-13)
Bugfixes
- Widened
jsoninput type fromdictandlisttoMappingandSequence. (#7436)- Changed
headersinput type to MutableMapping and removedNonefromRequest.headerstyping to improve handling for users. (#7431)Response.reasonmoved fromstr | Nonetostrto improve handling for users. (#7437)- Fixed a bug where some bodies with custom
__getattr__implementations weren't being properly detected as Iterables. (#7433)New Contributors
@k223kimmade their first contribution in psf/requests#7433Full Changelog: https://github.com/psf/requests/blob/main/HISTORY.md#2341-2026-05-13
v2.34.0
2.34.0 (2026-05-11)
Announcements
Requests 2.34.0 introduces inline types, replacing those provided by typeshed. Public API types should be fully compatible with mypy, pyright, and ty. We believe types are comprehensive but if you find issues, please report them to the pinned tracking issue.
Special thanks to
@bastimeyer,@cthoyt,@edgarrmondragon, and@srittaufor helping review and test the types ahead of the release. (#7272)Improvements
- Digest Auth hashing algorithms have added
usedforsecurity=Falseto clarify security considerations. (#7310)- Requests added support for Python 3.15 based on beta1. Downstream projects should be able to start testing prior to its release in October. (#7422)
- Requests added support for Python 3.14t. (#7419)
Bugfixes
Response.historyno longer contains a reference to itself, preventing accidental looping when traversing the history list. (#7328)- Requests no longer performs greedy matching on no_proxy domains. The
... (truncated)
Sourced from requests's changelog.
2.34.2 (2026-05-14)
- Moved
headersinput type back toMappingto avoid invariance issues withMutableMappingand inferred dict types. Users callingRequest.headers.update()may need to narrow typing in their code. (#7441)2.34.1 (2026-05-13)
Bugfixes
- Widened
jsoninput type fromdictandlisttoMappingandSequence. (#7436)- Changed
headersinput type to MutableMapping and removedNonefromRequest.headerstyping to improve handling for users. (#7431)Response.reasonmoved fromstr | Nonetostrto improve handling for users. (#7437)- Fixed a bug where some bodies with custom
__getattr__implementations weren't being properly detected as Iterables. (#7433)2.34.0 (2026-05-11)
Announcements
Requests 2.34.0 introduces inline types, replacing those provided by typeshed. Public API types should be fully compatible with mypy, pyright, and ty. We believe types are comprehensive but if you find issues, please report them to the pinned tracking issue.
Special thanks to
@bastimeyer,@cthoyt,@edgarrmondragon, and@srittaufor helping review and test the types ahead of the release. (#7272)Improvements
- Digest Auth hashing algorithms have added
usedforsecurity=Falseto clarify security considerations. (#7310)- Requests added support for Python 3.15 based on beta1. Downstream projects should be able to start testing prior to its release in October. (#7422)
- Requests added support for Python 3.14t. (#7419)
Bugfixes
Response.historyno longer contains a reference to itself, preventing accidental looping when traversing the history list. (#7328)- Requests no longer performs greedy matching on no_proxy domains. The proxy_bypass implementation has been updated with CPython's fix from bpo-39057. (#7427)
- Requests no longer incorrectly strips duplicate leading slashes in URI paths. This should address user issues with specific presigned URLs. Note the full fix requires urllib3 2.7.0+. (#7315)
... (truncated)
6e83187
v2.34.284d10f0
Move Request.headers back to Mapping (#7441)b7b549b
v2.34.1e511bc7
Fix mutability issues with headers input types (#7431)5691f59
Update JsonType containers to read-based collections (#7436)2144213
Constrain Response.reason to str (#7437)6404f34
Fix prepare_body stream detection for
__getattr__-based file wrappers (#7...0b401c7
v2.34.086b378d
Align Session.get parameters with requests.get (#7429)a4f9a59
Port bpo-39057 to Requests (#7427)