github psf/requests v2.34.1

4 hours ago

2.34.1 (2026-05-13)

Bugfixes

  • Widened json input type from dict and list to Mapping
    and Sequence. (#7436)
  • Changed headers input type to MutableMapping and removed None from
    Request.headers typing to improve handling for users. (#7431)
  • Response.reason moved from str | None to str to 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

Full Changelog: https://github.com/psf/requests/blob/main/HISTORY.md#2341-2026-05-13

Don't miss a new requests release

NewReleases is sending notifications on new releases.