You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Validate both type and value with `isinstance`, thanks to easy-to-write "validating types"
6
+
*`has_valid_type` and `has_valid_value` methods provided for easy auditing, as well as `is_vtype`
7
+
* Validation syntax fully compliant with `valid8`. Compliant error message available through a `validate()` method
8
+
* v-types are composable so that creating a library of reusable elements is straightforward (note: should we provide one in this library based on `valid8`[library](https://smarie.github.io/python-valid8/validation_funcs/b_base_validation_lib/) ?)
9
+
* Two styles: `vtype(...)` constructor method, as well as an alternate `class ...(VType)` style to perform composition using inheritance, and write docstrings more easily.
Copy file name to clipboardExpand all lines: docs/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,7 @@ assert not isinstance(1, NonEmptyStr)
146
146
*`has_valid_type`and`has_valid_value` methods provided for easy auditing, as well as`is_vtype`
147
147
* Validation syntax fully compliant with`valid8`. Compliant error message available through a `validate()` method
148
148
* v-types are composable so that creating a library of reusable elements is straightforward (note: should we provide one in this library based on `valid8` [library](https://smarie.github.io/python-valid8/validation_funcs/b_base_validation_lib/) ?)
149
-
*Alternate class-style available to perform composition using inheritance, and write docstrings more easily.
149
+
*Two styles: `vtype(...)` constructor method, as well as an alternate `class...(VType)` style to perform composition using inheritance, and write docstrings more easily.
0 commit comments