https://github.com/python/cpython/commit/dbfc6a417a5db237ff16a8a75f09c1bd5d5bd349
commit: dbfc6a417a5db237ff16a8a75f09c1bd5d5bd349
branch: main
author: Jelle Zijlstra <jelle.zijls...@gmail.com>
committer: AA-Turner <9087854+aa-tur...@users.noreply.github.com>
date: 2025-04-06T13:43:09+01:00
summary:

gh-132139: Document that you can no longer set attributes on unions (#132146)

files:
M Doc/whatsnew/3.14.rst

diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst
index 13448d1fc07654..b20d75c1180713 100644
--- a/Doc/whatsnew/3.14.rst
+++ b/Doc/whatsnew/3.14.rst
@@ -1130,6 +1130,8 @@ typing
     For example, ``isinstance(int | str, typing.Union)`` will return ``True``; 
previously
     this raised :exc:`TypeError`.
   - The ``__args__`` attribute of :class:`typing.Union` objects is no longer 
writable.
+  - It is no longer possible to set arbitrary dunder attributes on 
:class:`typing.Union`
+    objects.
 
   (Contributed by Jelle Zijlstra in :gh:`105499`.)
 

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to