rizer.misc.check_utils#
Functions#
|
Check if the value is a positive, finite, number. |
Module Contents#
- rizer.misc.check_utils.validate_positive(name: str, value: int | float, allow_zero: bool = False) None#
Check if the value is a positive, finite, number.
- Parameters:
- Raises:
TypeError – Raised if the value is not a number.
ValueError – Raised if the value is not finite.
ValueError – Raised if the value is not positive.