Validators
Note
Private module
Validators package of ispec.
Module containing functions used to validate methods and classes definitions.
- ispec._validators.validate_class_typehint(cls: type[object]) None[source]
Validate class type hinting.
- Raises:
ClassValidationError – error raised if one method or more in the given class raises a
MethodValidationError.- Parameters:
cls (
type[object]) –- Return type:
None
- ispec._validators.validate_method_typehint(method: collections.abc.Callable[[...], Any]) None[source]
Validate the method type hinting.
- Raises:
MethodValidationError – error raised if type annotations are missing for the method return, or in the method parameters.
- Parameters:
method (
Callable[...,Any]) –- Return type:
None