Д
def sample(cls=None, /, *, **kwargs):
def dispatch(**kwargs):
def wrapper(cls):
# some shit with
# class cls
#
# args and kwargs
# used here passes
# from dispatch
return cls
return wrapper
dispatched = dispatch(**kwargs)
if not cls:
return dispatched
return dispatched(cls)