Pārlūkot izejas kodu

Specify return type for apply_sync

Corey Farwell 10 gadi atpakaļ
vecāks
revīzija
b3faec8699
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      celery/app/task.py

+ 4 - 0
celery/app/task.py

@@ -532,6 +532,10 @@ class Task(object):
             attribute.  Trailing can also be disabled by default using the
             :attr:`trail` attribute
         :keyword publisher: Deprecated alias to ``producer``.
+        
+        :rtype :class:`celery.result.AsyncResult`: if 
+            :setting:`CELERY_ALWAYS_EAGER` is not set, otherwise 
+            :class:`celery.result.EagerResult`:
 
         Also supports all keyword arguments supported by
         :meth:`kombu.Producer.publish`.