Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Python 3.11 breaks f-String cast
From What’s New In Python 3.11: > Changed Enum.format() (the default for format(), str.format() and f-strings) to always produce the same result as Enum.str(): for enums inheriting from ReprEnum it will be the member’s value; __for all other enums it will be the enum and member name (e.g. Color.RED).__ For this reason we specifically use the enum's value where necessary. Fixes #9
- Loading branch information