treeo.in_compact Returns: Type Description bool True if current inside a function decorated with @compact. Source code in treeo/api.py def in_compact() -> bool: """ Returns: `True` if current inside a function decorated with `@compact`. """ return tree_m._COMPACT_CONTEXT.in_compact