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]]
pywikibot-commits@lists.wikimedia.org