survive.utils
.check_bool¶
-
survive.utils.
check_bool
(tf, *, allow_none=False)[source]¶ Validate boolean function arguments.
Parameters: - tf : object
The object to be validated.
- allow_none : bool, optional
Indicates whether the value None should be allowed.
Returns: - tf : bool or None
The validated bool.
Raises: - TypeError
If tf is not an instance of bool.