@hug.directive(apply_globally=False)
def my_directive(default=None, **kwargs):
 return default

@ hug . directive ( apply_globally = False ) def my_directive ( default = None , ** kwargs ) : return default
for testing .