Change8

3.1.2

📦 flaskView on GitHub →
🐛 3 fixes🔧 3 symbols

Summary

Flask 3.1.2 fixes async view handling for `stream_with_context`, corrects session state with `follow_redirects` in the test client, and relaxes the `send_file` type hint.

🐛 Bug Fixes

  • `stream_with_context` no longer fails inside async views (issue #5774).
  • Test client `follow_redirects` now correctly preserves the final session state (issue #5786).
  • Type hint for `send_file` relaxed to allow passing a bytes IO object (issue #5776).

🔧 Affected Symbols

stream_with_contextfollow_redirectssend_file