jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/684119 )
Change subject: [typing] plural.py: import Dict from backports
......................................................................
[typing] plural.py: import Dict from backports
Change-Id: I770895d915c7dcaef804b528db8e60f439418de2
---
M pywikibot/plural.py
1 file changed, 2 insertions(+), 7 deletions(-)
Approvals:
JJMC89: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/plural.py b/pywikibot/plural.py
index aebde6a..a53f469 100644
--- a/pywikibot/plural.py
+++ b/pywikibot/plural.py
@@ -1,17 +1,12 @@
"""Module containing plural rules of various languages."""
#
-# (C) Pywikibot team, 2011-2020
+# (C) Pywikibot team, 2011-2021
#
# Distributed under the terms of the MIT license.
#
-import sys
from typing import Callable, Union
-
-if sys.version_info[:2] >= (3, 9):
- Dict = dict
-else:
- from typing import Dict
+from pywikibot.backports import Dict
PluralRule = Dict[str, Union[int, Callable]]
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/684119
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I770895d915c7dcaef804b528db8e60f439418de2
Gerrit-Change-Number: 684119
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged