summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2023-05-12 14:38:35 (GMT)
committerGitHub <noreply@github.com>2023-05-12 14:38:35 (GMT)
commitce4eecf989e23fa26c033de78f1ca8b035a979cb (patch)
tree1f8958f7483d30a12b72dbede8e43c69efd16c8a /Doc/whatsnew
parenta052be4c0d9707ebdb935b8314ed22e8d3d99fc0 (diff)
downloadcpython-ce4eecf989e23fa26c033de78f1ca8b035a979cb.zip
cpython-ce4eecf989e23fa26c033de78f1ca8b035a979cb.tar.gz
cpython-ce4eecf989e23fa26c033de78f1ca8b035a979cb.tar.bz2
gh-91896: Fixup some docs issues following ByteString deprecation (#104422)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.12.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index eb13d4b..546c714 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -831,6 +831,9 @@ Pending Removal in Python 3.14
For use in typing, prefer a union, like ``bytes | bytearray``, or :class:`collections.abc.Buffer`.
(Contributed by Shantanu Jain in :gh:`91896`.)
+* :class:`typing.ByteString`, deprecated since Python 3.9, now causes an
+ :exc:`DeprecationWarning` to be emitted when it is used or accessed.
+
* Creating immutable types (:data:`Py_TPFLAGS_IMMUTABLETYPE`) with mutable
bases using the C API.