Ask a question to get started
Enter to sendā¢Shift+Enter new line
Conditionally apply a decorator.
conditional_decorator( condition: bool, decorator: Callable[[Any], Any] ) -> Callable[[Any], Any]
condition
bool
A boolean indicating whether to apply the decorator.
decorator
Callable[[Any], Any]
A decorator function.