Skip to content

Commit

Permalink
pythongh-121658: Add MimeTypes.add_type docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stinovlas committed Jul 13, 2024
1 parent dc03ce7 commit ccb920e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Doc/library/mimetypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ 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.


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

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

0 comments on commit ccb920e

Please sign in to comment.