New submission from Ethan Furman <et...@stoneleaf.us>:
Creating one's own int Flag type doesn't work properly with regards to the bitwise operators: class MyIntFlag(int, Flag): ONE = 1 TWO = 2 FOUR = 4 MyIntFlag.ONE | MyIntFlag.TWO # <MyIntFlag.ONE|TWO: 3> MyIntFlag.ONE | 2 # 3 ---------- assignee: ethan.furman messages: 411319 nosy: ethan.furman priority: normal severity: normal status: open title: Enum: ensure bitwise operators on subclasses are correct type: behavior versions: Python 3.11 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46477> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com