A bunch of enums in the code base include this code:
def __str__(self) -> str:
return str(self.value)
I'm not sure if these are useful, since we can get the same with Foo.BAR.value. A lot of them are not covered by tests either, which probably means they aren't used in production code.