Finalize transfer decoding before callbacks

Merged
KL
2mo ago
+16-5

Summary

  • Finalize each Content-Transfer-Encoding decoder when its part ends.
  • Invoke field and file callbacks after decoding is complete.
  • Cover trailing buffered quoted-printable data.

Testing

  • uv run pytest
  • uv run ruff format --check --diff python_multipart multipart tests
  • uv run ruff check python_multipart multipart tests
  • uv run mypy python_multipart multipart tests

AI Disclaimer

This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.