pynenc.util.import_tools¶
Module Contents¶
Functions¶
Check if a function is defined at module level. |
API¶
- pynenc.util.import_tools.is_module_level_function(func: collections.abc.Callable) bool[source]¶
Check if a function is defined at module level.
This ensures the function can be properly serialized and imported.
- Parameters:
func – The function to check
- Returns:
True if the function is defined at module level, False otherwise