Skip to content

🐛 Fix multipart version comparison#1

Open
hbrooks wants to merge 2 commits into
masterfrom
demo/pr-15226
Open

🐛 Fix multipart version comparison#1
hbrooks wants to merge 2 commits into
masterfrom
demo/pr-15226

Conversation

@hbrooks
Copy link
Copy Markdown

@hbrooks hbrooks commented May 28, 2026

Originally PR fastapi#15226 in fastapi/fastapi by @Esubaalew

Use numeric version parsing instead of string comparison so valid python-multipart
versions like 0.0.100 are not treated as older than 0.0.12. Add regression tests
for the multipart check and the version parser helper.
Make the 0.0.100 regression test fail on master by removing multipart
fallback, and move _version_str_to_tuple tests to test_dependencies_utils.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants