jenkins-bot submitted this change.

View Change

Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified
[typing] plural.py: import Dict from backports

Change-Id: I770895d915c7dcaef804b528db8e60f439418de2
---
M pywikibot/plural.py
1 file changed, 2 insertions(+), 7 deletions(-)

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 change 684119. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I770895d915c7dcaef804b528db8e60f439418de2
Gerrit-Change-Number: 684119
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged