Fix multipart version comparison for newer releases by Esubaalew · Pull Request #15226 · fastapi/fastapi

This fixes the multipart version check used for form and file handling.

The code was comparing version strings directly, which means a version like 0.0.100 could be treated as older than 0.0.12. That can make a valid python-multipart installation look broken.

This change parses the version into numeric parts before comparing it. I also added tests to cover the regression and the helper used for parsing.