Skip to content

Commit ccb920e

Browse files
committed
gh-121658: Add MimeTypes.add_type docs
1 parent dc03ce7 commit ccb920e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/library/mimetypes.rst

+6
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@ than one MIME-type database; it provides an interface similar to the one of the
241241
:data:`common_types` and :data:`types_map`.
242242

243243

244+
.. method:: MimeTypes.add_type(type, ext, strict=True)
245+
246+
Similar to the :func:`add_type` function, using the tables stored as part of
247+
the object.
248+
249+
244250
.. method:: MimeTypes.guess_extension(type, strict=True)
245251

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

0 commit comments

Comments
 (0)