GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TOML MIME type is missing · Issue #139958 · python/cpython

TOML MIME type is missing #139958

New issue
Copy link
New issue
Copy link
Closed
Closed
TOML MIME type is missing#139958
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

@gforcada
gforcada
opened on Oct 11, 2025
Issue body actions

Bug report

Bug description:

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.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

  • gh-139958: Add TOML MIME type #139959

Activity

  1. gforcada
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Oct 11, 2025
  2. StanFromIreland
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Oct 11, 2025
  3. StanFromIreland commented on Oct 11, 2025

    @StanFromIreland
    StanFromIreland
    on Oct 11, 2025
    Member
    More actions

    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

  4. gforcada commented on Oct 11, 2025

    @gforcada
    gforcada
    on Oct 11, 2025
    ContributorAuthor
    More actions

    Thanks! I see, that I should add an entry to Doc/whatsnew nonetheless 👍🏾

  5. StanFromIreland commented on Oct 11, 2025

    @StanFromIreland
    StanFromIreland
    on Oct 11, 2025
    Member
    More actions

    @hugovk, out of curiosity, why not automatically generate the dictionary from IANA's table?

  6. terryjreedy commented on Oct 11, 2025

    @terryjreedy
    terryjreedy
    on Oct 11, 2025
    Member
    More actions

    I think that this may be a feature request, rather than a bug, but others can decide.

  7. StanFromIreland
    added
    type-featureA feature request or enhancementA feature request or enhancement
    and removed
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Oct 11, 2025
  8. StanFromIreland commented on Oct 11, 2025

    @StanFromIreland
    StanFromIreland
    on Oct 11, 2025
    Member
    More actions

    I didn't notice, but I agree, I changed it.

  9. hugovk
    added a commit that references this issue on Oct 14, 2025

    gh-139958: Add TOML MIME type (#139959)

    2535345
  10. gforcada commented on Oct 15, 2025

    @gforcada
    gforcada
    on Oct 15, 2025
    ContributorAuthor
    More actions

    As the PR got merged, I guess we can close this, there's no need to backport it I guess.

  11. gforcada
    closed this as completedon Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.