``` >>> import validators >>> validators.between(0, min_val=0, max_val=5) ValidationError(func=between, args={'value': 0, 'min_val': 0, 'max_val': 5}) >>> validators.between(1, min_val=0, max_val=5) True >>> validators.between(0, min_val=-1, max_val=5) ValidationError(func=between, args={'value': 0, 'min_val': -1, 'max_val': 5}) >>> validators.between(-1, min_val=-1, max_val=5) True >>> ```
Activity
scotttyso commentedon Sep 14, 2023
For now I downgraded to validators to 0.11.0, which seems to be an old/different version of the module to work around this issue.
nandgator commentedon Sep 17, 2023
Nice catch! Here's a patch:
PR is welcome!
fix: bug in `between` module
fix: bug in `between` module