5.3.1.24.14.1. cli.helpers.package_helpers.check_project

cli.helpers.package_helpers.check_project(fun: Callable[[...], F]) Callable[[...], F | None]

Return None if ROOT_IS_PROJECT is False, otherwise call and return the function.

Parameters:

fun – Function to guard behind a project-root check.

Returns:

Wrapper that returns None outside project context.