Alex Waygood <alex.wayg...@gmail.com> added the comment:
I would argue it's quite important for `IntEnum` to have the dunder methods inherited from `int` show up in `help()`. Dunder methods indicate that an object has certain behaviours, so it's important for a user to be able to verify that an `IntEnum` member has similar behaviours to an `int` instance. `IntEnum` is advertised in the documentation as something that can be used everywhere where an integer is expected; it's surprising when the output from `help()` is hugely abbreviated for `IntEnum` relative to `int`. But, I agree that my first draft of this PR is more complex than I'd like it to be. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45535> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com