Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1130,8 +1130,9 @@ 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.
- 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
documented to work, and was subtly broken in many cases.

(Contributed by Jelle Zijlstra in :gh:`105499`.)

Expand Down
Loading