Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1288481?usp=email )

Change subject: typing: fix imports for type checking in GeneratorsMixin
......................................................................

typing: fix imports for type checking in GeneratorsMixin

Change-Id: I5e6697c564dcc958e4d1b5b47f56615ec2727f4a
---
M pywikibot/site/_generators.py
1 file changed, 4 insertions(+), 6 deletions(-)

Approvals:
  Xqt: Verified; Looks good to me, approved




diff --git a/pywikibot/site/_generators.py b/pywikibot/site/_generators.py
index 85d2ec9..156885c 100644
--- a/pywikibot/site/_generators.py
+++ b/pywikibot/site/_generators.py
@@ -33,9 +33,7 @@


 if typing.TYPE_CHECKING:
-    from data.api import ParamInfo, Request
-
-    from pywikibot.site._apisite import _RequestWrapperT
+    from pywikibot.data.api import ParamInfo, Request
     from pywikibot.site._namespace import NamespacesDict, SingleNamespaceType
     from pywikibot.site._tokenwallet import TokenWallet
     from pywikibot.tools import MediaWikiVersion
@@ -46,7 +44,7 @@
     """API generators mixin to MediaWiki site."""

     if typing.TYPE_CHECKING:
-        _generator: Callable[..., _RequestWrapperT]
+        _generator: Callable[..., pywikibot.site._apisite._RequestWrapperT]
         _paraminfo: ParamInfo
         _request: Callable[..., Request]
         assert_valid_iter_params: Callable[..., None]
@@ -67,7 +65,7 @@
     ) -> Generator[pywikibot.Page]:
         """Return a page generator from pageids.

-        Pages are iterated in the same order than in the underlying
+        Pages are iterated in the same order as in the underlying
         pageids.

         Pageids are filtered and only one page is returned in case of
@@ -131,7 +129,7 @@
     ) -> Generator[pywikibot.Page]:
         """Return a generator to a list of preloaded pages.

-        Pages are iterated in the same order than in the underlying
+        Pages are iterated in the same order as in the underlying
         pagelist. In case of duplicates in a groupsize batch, return the
         first entry.


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

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

Reply via email to