From 93b93aa44093dac7b951998b1e3a6215021db617 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Thu, 25 May 2023 17:01:57 -0700 Subject: [PATCH] add .pyi --- asynq/decorators.pxd | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/asynq/decorators.pxd b/asynq/decorators.pxd index 554e0ba..2bd374f 100644 --- a/asynq/decorators.pxd +++ b/asynq/decorators.pxd @@ -52,6 +52,15 @@ cdef class AsyncDecorator(PureAsyncDecorator): pass +cdef class EagerAsyncDecorator(qcore.decorators.DecoratorBase): + cdef public type task_cls + cdef public bint needs_wrapper + + cpdef str name(self) + cpdef bint is_pure_async_fn(self) except -1 + cpdef object _call_pure(self, tuple args, dict kwargs) + + cdef class AsyncAndSyncPairDecorator(AsyncDecorator): cdef public object sync_fn