jenkins-bot merged this change.
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.