Open tucked opened 1 year ago
>>> import mimetypes >>> mimetypes.guess_type("README.rst", strict=False) (None, None)
In the python:3.11 Docker image, we get a vanity type:
python:3.11
>>> mimetypes.guess_type("README.rst", strict=False) ('text/prs.fallenstein.rst', None)
I think most people would expect text/x-rst. Even better would be to get it registered!
text/x-rst
Related: https://github.com/python/cpython/pull/17995
Given that this type is explicit in packaging specifications, it would be valuable for Python to support inferring it from an extension and avoid hacks like these.
I am on it :)
In the
python:3.11
Docker image, we get a vanity type:I think most people would expect
text/x-rst
. Even better would be to get it registered!Linked PRs