pages.py#

mlui.decorators.pages.check_task(page_tasks)[source]#

Decorator to check if the provided tasks are allowed for the page.

Parameters:
  • page_tasks (list of str) – Tasks to check.

  • func (Callable) – Function to wrap and execute.

Returns:

Wrapped function.

Return type:

Callable