https://github.com/python/cpython/commit/31d1a7216ce27342788917cfc1e60a1debe0d530
commit: 31d1a7216ce27342788917cfc1e60a1debe0d530
branch: main
author: sobolevn <[email protected]>
committer: sobolevn <[email protected]>
date: 2026-05-13T11:48:01+03:00
summary:
gh-149720: Fix docs for `mimetypes.MimeType.add_type` method (#149731)
gh-149720: Fix docs for `mimetypes.MimeType.add_type` method`
files:
M Doc/library/mimetypes.rst
diff --git a/Doc/library/mimetypes.rst b/Doc/library/mimetypes.rst
index eed9acb92e0c95f..5103eacde1dd5b5 100644
--- a/Doc/library/mimetypes.rst
+++ b/Doc/library/mimetypes.rst
@@ -315,9 +315,11 @@ than one MIME-type database; it provides an interface
similar to the one of the
When *strict* is ``True`` (the default), the mapping will be added to the
official MIME types, otherwise to the non-standard ones.
- .. deprecated-removed:: 3.14 3.16
- Invalid, undotted extensions will raise a
- :exc:`ValueError` in Python 3.16.
+ .. deprecated:: 3.14
+ *ext* values that do not start with ``'.'`` are deprecated.
+
+ .. versionchanged:: next
+ *ext* now must start with ``'.'``. Otherwise :exc:`ValueError` is
raised.
.. _mimetypes-cli:
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]