From 679142481d94c779d46f1e347604ec9ab24b05f3 Mon Sep 17 00:00:00 2001 From: Yobmod Date: Wed, 28 Jul 2021 16:41:14 +0100 Subject: Rmv py 3.10 check for typing.Ordereddict - its deprecated then, but will still work until 3.12 --- git/config.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'git') diff --git a/git/config.py b/git/config.py index def8ab8c..ad02b437 100644 --- a/git/config.py +++ b/git/config.py @@ -43,12 +43,8 @@ T_ConfigParser = TypeVar('T_ConfigParser', bound='GitConfigParser') if sys.version_info[:3] < (3, 7, 2): # typing.Ordereddict not added until py 3.7.2 - from collections import OrderedDict - OrderedDict_OMD = OrderedDict -elif sys.version_info[:2] >= (3, 10): - # then deprecated from 3.10 as collections.OrderedDict was made generic - from collections import OrderedDict - OrderedDict_OMD = OrderedDict[str, List[_T]] + from collections import OrderedDict # type: ignore # until 3.6 dropped + OrderedDict_OMD = OrderedDict # type: ignore # until 3.6 dropped else: from typing import OrderedDict # type: ignore # until 3.6 dropped OrderedDict_OMD = OrderedDict[str, List[_T]] # type: ignore[assignment, misc] -- cgit v1.2.1