Comparable values
For certain types you can't make comparisons out of the box in Python but Validation brings support to a few of them.
You can make comparison with the following data types:
- Countable: any object that has attribute
__len__
datetime
objects- String which can be converted to
datetime
based on ISO format - Integer types (
int
,float
,bool
) - Single character string
- If string is digit, then it will be treated as integer
- String with more than one character comparable by length
Below you can see some examples: