def task(*args, **kwargs):
 kwargs.setdefault('accept_magic_kwargs', False)
 return app_or_default().task(*args, **kwargs)

def task ( * args , ** kwargs ) : kwargs . setdefault ( 'accept_magic_kwargs' , False ) return app_or_default ( ) . task ( * args , ** kwargs )
decorator to create a task class out of any callable .