>>> import mimetypes
>>> mimetypes.guess_type("README.rst", strict=False)
(None, None)
In the python:3.11 Docker image, we get a vanity type:
>>> 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!
Linked PRs