

def __call__(__hug_internal_self, *args, **kwargs):
    '"Calls the wrapped function, uses __hug_internal_self incase self is passed in as a kwarg from the wrapper'
    if (not __hug_internal_self.is_coroutine):
        return __hug_internal_self._function(*args, **kwargs)
    return asyncio_call(__hug_internal_self._function, *args, **kwargs)

dataset/ETHPy150Open timothycrosley/hug/hug/interface.py Interfaces.__call__/original