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

Change subject: IMRP: Add type annotation to _Precision.__getitem__
......................................................................

IMRP: Add type annotation to _Precision.__getitem__

Change-Id: Idb809f1478c0adc50f840be9e25277633f5194c8
---
M pywikibot/_wbtypes.py
1 file changed, 1 insertion(+), 1 deletion(-)

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




diff --git a/pywikibot/_wbtypes.py b/pywikibot/_wbtypes.py
index 8ca7557..ccb8cb1 100644
--- a/pywikibot/_wbtypes.py
+++ b/pywikibot/_wbtypes.py
@@ -313,7 +313,7 @@
         'second': 14,
     }

-    def __getitem__(self, key) -> int:
+    def __getitem__(self, key: str) -> int:
         if key == 'millenia':
             issue_deprecation_warning(
                 f'{key!r} key for precision', "'millennium'", since='10.0.0')

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1176824?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: Idb809f1478c0adc50f840be9e25277633f5194c8
Gerrit-Change-Number: 1176824
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