v2.34.1
Changed 3
- Widened json input type from dict and list to Mapping and Sequence
- Changed headers input type to MutableMapping and removed None from Request.headers typing
- Response.reason moved from str | None to str
Fixed 1
- Fixed a bug where some bodies with custom __getattr__ implementations weren't being properly detected as Iterables
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
- @k223kim made their first contribution in https://github.com/psf/requests/pull/7433
Full Changelog: https://github.com/psf/requests/blob/main/HISTORY.md#2341-2026-05-13