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
Looking at the mimetypes module, it feels odd that .toml files are not recognized, given that they are in use within the Python community (pyproject.toml being the most obvious case).
Looking at the types_map and specially at the comment above it, it is not clear to me what's the criteria of adding one or not whenever they are on the IANA listing.
But to not get myself carried away, and as that would be my first contribution, I would keep it simple. Others can add other missing MIME types.
It is registered with IANA, the PR should be simple enough, the devguide has some helpful information and we are happy to answer any questions. It should be like this commit: 132b6bc
Activity
StanFromIreland commentedon Oct 11, 2025
It is registered with IANA, the PR should be simple enough, the devguide has some helpful information and we are happy to answer any questions. It should be like this commit: 132b6bc
gforcada commentedon Oct 11, 2025
Thanks! I see, that I should add an entry to
Doc/whatsnewnonetheless 👍🏾StanFromIreland commentedon Oct 11, 2025
@hugovk, out of curiosity, why not automatically generate the dictionary from IANA's table?
terryjreedy commentedon Oct 11, 2025
I think that this may be a feature request, rather than a bug, but others can decide.
StanFromIreland commentedon Oct 11, 2025
I didn't notice, but I agree, I changed it.
gh-139958: Add TOML MIME type (#139959)
gforcada commentedon Oct 15, 2025
As the PR got merged, I guess we can close this, there's no need to backport it I guess.