is_valid_function#
- classmethod FunctionStopper.is_valid_function(fn: Any) bool[source]#
Whether
fnis a callable, other than aStopper, to wrap.- Parameters:
fn (Any) – The object to check.
- Returns:
True if
fnis callable and isn’t aStopper, False otherwise.- Raises:
ValueError – If
fnqualifies but has astop_allattribute, since it’s likely meant to be aStopper.- Return type: