Skip to content

gh-121658: Add MimeTypes.add_type docs #121665

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Doc/library/mimetypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,14 @@ than one MIME-type database; it provides an interface similar to the one of the
:data:`common_types` and :data:`types_map`.


.. method:: MimeTypes.add_type(type, ext, strict=True)

Similar to the :func:`add_type` function, using the tables stored as part of
the object.

.. versionadded:: 2.3


.. method:: MimeTypes.guess_extension(type, strict=True)

Similar to the :func:`guess_extension` function, using the tables stored as part
Expand Down
Loading