Sometimes you need to check for constants. This works nicely for `str(...)` but not for any of the other validators. The workaround is to use `enum(...)` with a single constant value, which doesn't seem particularly idiomatic.
Sometimes you need to check for constants. This works nicely for
str(...)but not for any of the other validators.The workaround is to use
enum(...)with a single constant value, which doesn't seem particularly idiomatic.