ConditionResult¶
- class ConditionResult[source]¶
Contain result of a condition function.
- Parameters
- is_passbool
Whether the condition functions passed the given value or not.
- detailsstr
What actually happened in the condition.
- categoryConditionCategory , default: ConditionCategory.FAIL
The category to which the condition result belongs.
- __init__(is_pass: bool, details: str = '', category: ConditionCategory = ConditionCategory.FAIL)[source]¶
- __new__(*args, **kwargs)¶
Attributes
Return priority of the current condition. |
|
Methods
Return icon of the result to display. |
|
Return icon char of the result to display. |
|
|
Set name to be displayed in table. |