requests v2.34.1

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 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

View original

Upgraded? How did it go?

Discussion