loom.validator.check_abstract
Copyright (c) Entropica Labs Pte Ltd 2025.
Use, distribution and reproduction of this program in its source or compiled form is prohibited without the express written consent of Entropica Labs Pte Ltd.
- class loom.validator.check_abstract.AbstractValidityCheck(*args, **kwargs)[source]
Bases:
ABCAbstract dataclass to store the results of a check.
- Parameters:
output (Any) – Any output that is relevant to the check. It has to have a __len__ method to be used to determine if the check is valid.
Properties
----------
valid (bool) – True if the check is valid (i.e., no issues found), False otherwise.
message (str) – A message indicating the result of the check. It will be empty if the check is valid, otherwise it will contain a message describing the issue. This must be implemented by subclasses.
- property message: str
A message indicating the result of the check. It will be empty if the check is valid, otherwise it will contain a message describing the issue.
-
output:
Any
- property valid: bool
Determine if the check passed based on the output.