-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix deprecated calls to guess_type
for paths with Python 3.13
#10102
Conversation
This should have been a call to guess_file_type as guess_type expects a URL and guess_file_type expects a path
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #10102 +/- ##
=======================================
Coverage 98.76% 98.76%
=======================================
Files 122 122
Lines 36904 36912 +8
Branches 4400 4402 +2
=======================================
+ Hits 36447 36455 +8
Misses 311 311
Partials 146 146
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
guess_type
in FileResponse for Python 3.13
CodSpeed Performance ReportMerging #10102 will not alter performanceComparing Summary
|
guess_type
in FileResponse for Python 3.13guess_type
for paths with Python 3.13
guess_type
for paths with Python 3.13guess_type
for paths with Python 3.13
Backport to 3.11: 💚 backport PR created✅ Backport PR branch: Backported as #10103 🤖 @patchback |
(cherry picked from commit 7557b03)
Backport to 3.12: 💚 backport PR created✅ Backport PR branch: Backported as #10104 🤖 @patchback |
(cherry picked from commit 7557b03)
…pe` for paths with Python 3.13 (#10103) Co-authored-by: J. Nick Koston <[email protected]>
…pe` for paths with Python 3.13 (#10104) Co-authored-by: J. Nick Koston <[email protected]>
What do these changes do?
https://docs.python.org/3/library/mimetypes.html#mimetypes.guess_type
These should have been changed to
guess_file_type
on Python 3.13 asguess_type
expects a URL andguess_file_type
expects a path. Its a soft deprecation so they still work but that may change in the future.Are there changes in behavior for the user?
no
Is it a substantial burden for the maintainers to support this?
no