8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Union
1 parent f247e1d commit 42e3a84Copy full SHA for 42e3a84
Doc/whatsnew/3.14.rst
@@ -1130,8 +1130,9 @@ typing
1130
For example, ``isinstance(int | str, typing.Union)`` will return ``True``; previously
1131
this raised :exc:`TypeError`.
1132
- The ``__args__`` attribute of :class:`typing.Union` objects is no longer writable.
1133
- - It is no longer possible to set arbitrary dunder attributes on :class:`typing.Union`
1134
- objects.
+ - It is no longer possible to set any attributes on :class:`typing.Union` objects.
+ This only ever worked for dunder attributes on previous versions, was never
1135
+ documented to work, and was subtly broken in many cases.
1136
1137
(Contributed by Jelle Zijlstra in :gh:`105499`.)
1138
0 commit comments