Utils Module#
Utility functions and helpers
Module Overview#
Utility functions and decorators for Nabla.
- nabla.utils.nodoc(obj)[source]#
Decorator to mark functions, methods, or classes as non-documentable.
This decorator adds a special attribute to the decorated object that can be checked by documentation generation tools to exclude it from generated docs.
- Parameters:
obj (F | C) – The function, method, or class to mark as non-documentable.
- Returns:
The original object with the _nabla_nodoc attribute set to True.
- Return type:
F | C
Examples
>>> @nodoc ... def internal_helper(): ... '''This function won't appear in generated docs.''' ... pass
>>> @nodoc ... class InternalClass: ... '''This class won't appear in generated docs.''' ... pass