jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
page.py: Fix the rtype of Link.site

Also add rtype to Page.site.

Change-Id: I61f5ddc1f27bbc12a72426d2b81eaf7cb4c25f3b
---
M pywikibot/page.py
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/pywikibot/page.py b/pywikibot/page.py
index 570cb6a..73720da 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -211,7 +211,10 @@

@property
def site(self):
- """Return the Site object for the wiki on which this Page resides."""
+ """Return the Site object for the wiki on which this Page resides.
+
+ @rtype: pywikibot.Site
+ """
return self._link.site

def version(self):
@@ -5673,7 +5676,7 @@
"""
Return the site of the link.

- @rtype: unicode
+ @rtype: pywikibot.Site
"""
if not hasattr(self, "_site"):
self.parse()

To view, visit change 434515. To unsubscribe, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I61f5ddc1f27bbc12a72426d2b81eaf7cb4c25f3b
Gerrit-Change-Number: 434515
Gerrit-PatchSet: 1
Gerrit-Owner: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot <>