jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1306104?usp=email )

Change subject: interwiki: extend docstring of is_not_redirect function
......................................................................

interwiki: extend docstring of is_not_redirect function

Change-Id: Id1c5b4f4d2459f63cbbafcccfbba5a124c52b1b1
---
M scripts/interwiki.py
1 file changed, 6 insertions(+), 2 deletions(-)

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




diff --git a/scripts/interwiki.py b/scripts/interwiki.py
index 4a6b920..1d0b941 100755
--- a/scripts/interwiki.py
+++ b/scripts/interwiki.py
@@ -680,10 +680,14 @@
         self.site = pywikibot.Site()

     @staticmethod
-    def is_not_redirect(page):
-        """Check whether *page* is not a redirect page.
+    def is_not_redirect(page: pywikibot.Page) -> bool:
+        """Check whether *page* is neither a redirect nor a category redirect.

         .. version-added:: 11.0
+
+        :param page: The page to check.
+        :return: ``True`` if the page exists and is not a redirect,
+            otherwise ``False``.
         """
         return page.exists() and not (page.isRedirectPage()
                                       or page.isCategoryRedirect())

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1306104?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Id1c5b4f4d2459f63cbbafcccfbba5a124c52b1b1
Gerrit-Change-Number: 1306104
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to