[3.14 regression] Cannot copy Union containing objects that do not implement __or__
#132882
Labels
3.14
new features, bugs and security fixes
stdlib
Python modules in the Lib dir
topic-typing
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
In 3.13 it was possible to copy a Union containing any object:
But in main this fails:
This doesn't affect any types supported by the type system (all of which support
|
), but may affect users who put non-standard objects inside a Union.CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: