Jelle Zijlstra <jelle.zijls...@gmail.com> added the comment:
This would be nice but I'm not sure it's worth the hassle in terms of documentation, tooling support, etc. There is an existing issue (that I can't find right now) that makes the `except` machinery use `__instancecheck__`, instead of looking only at real base classes like it does now. That change would automatically also make `|` work. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46967> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com