jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/699544 )
Change subject: [fix] Replace Site factory with APISite class for type ......................................................................
[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(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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,