Ethan Furman <[email protected]> added the comment:
Thank you for the bug report.
Another solution would be to subclass IntFlag and specify the `__format__`
method:
from enum import IntFlag as _IntFlag
class IntFlag(_IntFlag):
def __format__(self, spec):
return format(self.value, spec)
----------
assignee: -> ethan.furman
stage: -> needs patch
versions: +Python 3.10, Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41907>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com