is_none_like#

caf.toolkit.toolbox.is_none_like(obj)[source]#

Check if an object is None-like.

An object is considered None-like if one of the following is True: - The obj is None equates to True - if obj is a string: it is equal to ‘none’ once stripped and lowered - if obj is a list: if each item in the list is none-like

Parameters:

obj (Any) – Object to check

Returns:

True if obj is none-like else False

Return type:

bool