jenkins-bot submitted this change.
[fix] Replace Site factory with APISite class for type
Bug: T284880
Change-Id: Iee7cf756abb9f326b3c9c146f4c513e42d5ce119
---
M pywikibot/pagegenerators.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py
index 2ecd9f5..9c59f70 100644
--- a/pywikibot/pagegenerators.py
+++ b/pywikibot/pagegenerators.py
@@ -1580,7 +1580,7 @@
def TextIOPageGenerator(source: Optional[str] = None,
- site: Optional[pywikibot.Site] = None):
+ site: Optional[pywikibot.site.BaseSite] = None):
"""Iterate pages from a list in a text file or on a webpage.
The text source must contain page links between double-square-brackets or,
To view, visit change 699544. To unsubscribe, or for help writing mail filters, visit settings.