freeports_analysis.formats.utils_commons
Functions
|
Replace the decorated function with a default given as argument of the decorator if the decorated function raise a NotImplementedError or return None |
|
|
|
|
|
- freeports_analysis.formats.utils_commons.default_if_not_implemented(default_func)
Replace the decorated function with a default given as argument of the decorator if the decorated function raise a NotImplementedError or return None
- Parameters:
default_func (Callable[Any,Any]) – default function
- Returns:
the default function if the deorated function is overwritten, if not the decorated function
- Return type:
Callable[Any,Any]