jenkins-bot has submitted this change and it was merged.

Change subject: [FIX] Minor issues in docstrings
......................................................................


[FIX] Minor issues in docstrings

Change-Id: I2ff8ee439b39fe9addee40912b0f37843158e866
---
M pywikibot/comms/http.py
M pywikibot/comms/rcstream.py
M pywikibot/data/api.py
M pywikibot/tools/__init__.py
M scripts/coordinate_import.py
5 files changed, 6 insertions(+), 6 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/comms/http.py b/pywikibot/comms/http.py
index c58524d..1ddb029 100644
--- a/pywikibot/comms/http.py
+++ b/pywikibot/comms/http.py
@@ -259,7 +259,7 @@
     Raise exceptions and log alerts.
 
     @param request: Request that has completed
-    @rtype request: L{threadedhttp.HttpRequest}
+    @type request: L{threadedhttp.HttpRequest}
     """
     # TODO: do some error correcting stuff
     if isinstance(request.data, requests.exceptions.SSLError):
diff --git a/pywikibot/comms/rcstream.py b/pywikibot/comms/rcstream.py
index d024bc8..7f15404 100644
--- a/pywikibot/comms/rcstream.py
+++ b/pywikibot/comms/rcstream.py
@@ -202,7 +202,7 @@
     @param total: the maximum number of changes to return
     @type total: int
 
-    @returns pywikibot.comms.rcstream.rc_listener configured for the given site
+    @return: pywikibot.comms.rcstream.rc_listener configured for the given site
     """
     return rc_listener(
         wikihost=site.hostname(),
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index be9665c..66a4bc2 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -187,7 +187,7 @@
         @param preloaded_modules: API modules to preload
         @type preloaded_modules: set of string
         @param modules_only_mode: use the 'modules' only syntax for API request
-        @type: modules_only_mode: bool or None to only use default, which True
+        @type modules_only_mode: bool or None to only use default, which True
             if the site is 1.25wmf4+
         """
         self.site = site
diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py
index 7114298..144d16a 100644
--- a/pywikibot/tools/__init__.py
+++ b/pywikibot/tools/__init__.py
@@ -921,7 +921,7 @@
     Any exception calling inspect.signature is ignored and None is returned.
 
     @param obj: Function to inspect
-    @rtype obj: callable
+    @type obj: callable
     @rtype: inpect.Signature or None
     """
     try:
@@ -1014,7 +1014,7 @@
         @param outer_args: args
         @type outer_args: list
         @param outer_kwargs: kwargs
-        @type: outer_kwargs: dict
+        @type outer_kwargs: dict
         """
         def inner_wrapper(*args, **kwargs):
             """Replacement function.
diff --git a/scripts/coordinate_import.py b/scripts/coordinate_import.py
index 22541c1..e7fb94c 100755
--- a/scripts/coordinate_import.py
+++ b/scripts/coordinate_import.py
@@ -60,7 +60,7 @@
         @type  claims: dict
         @return: the first property for which self.prop
             is used as qualifier, or None if any
-        @returntype: unicode or None
+        @return: unicode or None
 
         """
         for prop in claims:

-- 
To view, visit https://gerrit.wikimedia.org/r/219023
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2ff8ee439b39fe9addee40912b0f37843158e866
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to