def __call__(self, value):
        # type: (Any) -> bool
        """Trigger the validation of the validator.

        The reason may retrieved by the :func:`get_reason()` method.

        :param value: The value to check against
        :type value: Any
        :return: bool
        """
        self._logic(value)

        if self._validation_result is not None and self._validation_result:
            for effect in self.on_valid:
                effect()
        elif self._validation_result is not None and not self._validation_result:
            for effect in self.on_invalid:
                effect()

        return self._validation_result
def __call__ ( self , value ) : self . _logic ( value ) if self . _validation_result is not None and self . _validation_result : for effect in self . on_valid : effect ( ) elif self . _validation_result is not None and not self . _validation_result : for effect in self . on_invalid : effect ( ) return self . _validation_result
Trigger the validation of the validator.

        The reason may retrieved by the :func:`get_reason()` method.

        :param value: The value to check against
        :type value: Any
        :return: bool