You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WEBP is not recognised as a standard type and demands the user to use strict=False as in mimetypes.guess_type("foobar.webp", strict=False) to recognise it. This is because it was previously not recognised by IANA as an official type.
Since the introduction of webp support in the mimetypes module in #89802 it has officially been accepted to IANA and thus is not a "non-standard format" anymore.
Feature or enhancement
Proposal:
WEBP is not recognised as a standard type and demands the user to use
strict=Falseas inmimetypes.guess_type("foobar.webp", strict=False)to recognise it. This is because it was previously not recognised by IANA as an official type.Since the introduction of
webpsupport in themimetypesmodule in #89802 it has officially been accepted to IANA and thus is not a "non-standard format" anymore.Refs:
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
https://bugs.python.org/issue38902
https://bugs.python.org/issue45639
#89802
Linked PRs
image/webpas a standard format in themimetypesmodule. #111742The text was updated successfully, but these errors were encountered: