Title: MimeTypes.add_type() is missing from the docs · Issue #121658 · python/cpython · GitHub
Open Graph Title: MimeTypes.add_type() is missing from the docs · Issue #121658 · python/cpython
X Title: MimeTypes.add_type() is missing from the docs · Issue #121658 · python/cpython
Description: Bug report Bug description: from mimetypes import MimeTypes m = MimeTypes() m.add_type # type checking error The add_type method is not defined on the class interface, and also not defined in the RST file for the docs. CPython versions t...
Open Graph Description: Bug report Bug description: from mimetypes import MimeTypes m = MimeTypes() m.add_type # type checking error The add_type method is not defined on the class interface, and also not defined in the R...
X Description: Bug report Bug description: from mimetypes import MimeTypes m = MimeTypes() m.add_type # type checking error The add_type method is not defined on the class interface, and also not defined in the R...
Opengraph URL: https://github.com/python/cpython/issues/121658
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MimeTypes.add_type() is missing from the docs","articleBody":"# Bug report\n\n### Bug description:\n\n```python\nfrom mimetypes import MimeTypes\n\nm = MimeTypes()\nm.add_type # type checking error\n```\n\nThe `add_type` method is not defined on the class interface, and also not defined in the RST file for the docs.\n\n\n### CPython versions tested on:\n\n3.8, 3.9, 3.10, 3.11, 3.12, 3.13, CPython main branch\n\n### Operating systems tested on:\n\nLinux, macOS, Windows\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-121665\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/steverep","@type":"Person","name":"steverep"},"datePublished":"2024-07-13T02:16:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/121658/cpython/issues/121658"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f7611cdb-8315-83f7-3811-29045ef75f8a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B650:397EC8:B08B15:101A9D3:6A5622EC |
| html-safe-nonce | e06443acbda7614dc65b4a5d94c7d730dd3dcce6606f32c79e9ec6c01fce3caa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjUwOjM5N0VDODpCMDhCMTU6MTAxQTlEMzo2QTU2MjJFQyIsInZpc2l0b3JfaWQiOiIzMzc0MTcyMjgxNzI3OTY2NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2b350903211ef9b551bfbb2c3cebf6e157f7a1d6ca141edb7e94dddc70a8a2e9 |
| hovercard-subject-tag | issue:2406636794 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/121658/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe270bbcffb7aad7813a7d619e0654a55074a661a157a0b8390a35a411656f85/python/cpython/issues/121658 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe270bbcffb7aad7813a7d619e0654a55074a661a157a0b8390a35a411656f85/python/cpython/issues/121658 |
| og:image:alt | Bug report Bug description: from mimetypes import MimeTypes m = MimeTypes() m.add_type # type checking error The add_type method is not defined on the class interface, and also not defined in the R... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | steverep |
| hostname | github.com |
| expected-hostname | github.com |
| None | eeb71977be324ce2bc7c4afd597296b8e3527d8922ad94632edd7a7296f8031b |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3e7957744c8a44d05ff1e464dc5d119e60b98fae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width