Skip to content

Commit

Permalink
add .pyi
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed May 26, 2023
1 parent 81edb6c commit 93b93aa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions asynq/decorators.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 93b93aa

Please sign in to comment.