Procházet zdrojové kódy

Specify return type for apply_sync

Corey Farwell před 10 roky
rodič
revize
b3faec8699
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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`.