Browse Source

Merge pull request #3226 from humitos/docs-returns

Docstring (returns) style fixed to render properly
Ask Solem 8 years ago
parent
commit
149053a84e
3 changed files with 3 additions and 3 deletions
  1. 1 1
      celery/app/base.py
  2. 1 1
      celery/app/task.py
  3. 1 1
      celery/utils/objects.py

+ 1 - 1
celery/app/base.py

@@ -729,7 +729,7 @@ class Celery(object):
         :keyword failover_strategy: Custom failover strategy.
         :keyword \*\*kwargs: Additional arguments to :class:`kombu.Connection`.
 
-        :returns :class:`kombu.Connection`:
+        :returns: :class:`kombu.Connection`
 
         """
         return self.connection_for_write(

+ 1 - 1
celery/app/task.py

@@ -373,7 +373,7 @@ class Task(object):
         :param \*args: positional arguments passed on to the task.
         :param \*\*kwargs: keyword arguments passed on to the task.
 
-        :returns :class:`celery.result.AsyncResult`:
+        :returns: :class:`celery.result.AsyncResult`
 
         """
         return self.apply_async(args, kwargs)

+ 1 - 1
celery/utils/objects.py

@@ -26,7 +26,7 @@ def mro_lookup(cls, attr, stop=set(), monkey_patched=[]):
         attributes module origin is not in this list, this to detect
         monkey patched attributes.
 
-    :returns None: if the attribute was not found.
+    :returns: None if the attribute was not found.
 
     """
     for node in cls.mro():