
April 26, 2021
11:30 p.m.
On 4/20/21 2:11 PM, MRAB wrote:
On 2021-04-20 20:42, Ethan Furman wrote:
The deprecation period will give that user, and others like them, time to add their own Enum base classes with the `__format__` method they desire.
Couldn't the format accept 'd' if they want an int, i.e. f"{Color.RED:d}"?
Yes, in fact. And that even works now. Thanks! -- ~Ethan~