Преглед изворни кода

Specify return type for apply_sync

Corey Farwell пре 10 година
родитељ
комит
b3faec8699
1 измењених фајлова са 4 додато и 0 уклоњено
  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`.