Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All validators should accept the equals= argument #262

Open
brianthelion opened this issue Jan 12, 2025 · 0 comments
Open

All validators should accept the equals= argument #262

brianthelion opened this issue Jan 12, 2025 · 0 comments

Comments

@brianthelion
Copy link

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.

brianthelion added a commit to lonely-bike/japan that referenced this issue Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant