79689629

Date: 2025-07-04 02:44:07
Score: 1
Natty:
Report link

The validation occurs on the values of your attriubtes from an enum. So the expected values in this case are integers. If you want strings, use a StrEnum instead (introduced in python 3.11). You'd have something like this:

class CustomEnum(StrEnum):
    ONE = "one"
    TWO = "two"
    ...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Spill_The_Tea