jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/959261 )

Change subject: [IMPR] fix inconsistent return statement
......................................................................

[IMPR] fix inconsistent return statement

Change-Id: Id267a4f03f6566e833ddf37889b11b793a796306
---
M pywikibot/flow.py
1 file changed, 11 insertions(+), 1 deletion(-)

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




diff --git a/pywikibot/flow.py b/pywikibot/flow.py
index ce653ed..a6c9e0c 100644
--- a/pywikibot/flow.py
+++ b/pywikibot/flow.py
@@ -318,7 +318,7 @@
         self.site.restore_topic(self, reason)
         self._reload()

-    def summary(self) -> Union[str, None]:
+    def summary(self) -> Optional[str]:
         """Get this topic summary, if any.

         :return: summary or None
@@ -326,6 +326,7 @@
         if 'summary' in self.root._current_revision.keys():
             return self.root._current_revision['summary']['revision'][
                 'content']['content']
+        return None

     def summarize(self, summary: str) -> None:
         """Summarize this topic.

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

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

Reply via email to