File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 41
41
42
42
T_ConfigParser = TypeVar ('T_ConfigParser' , bound = 'GitConfigParser' )
43
43
44
- if sys .version_info [:2 ] < (3 , 7 ):
45
- from collections import OrderedDict
46
- OrderedDict_OMD = OrderedDict
44
+ if sys .version_info [:3 ] < (3 , 7 , 2 ):
45
+ # typing.Ordereddict not added until py 3.7.2
46
+ from collections import OrderedDict # type: ignore # until 3.6 dropped
47
+ OrderedDict_OMD = OrderedDict # type: ignore # until 3.6 dropped
47
48
else :
48
- from typing import OrderedDict
49
- OrderedDict_OMD = OrderedDict [str , List [_T ]]
49
+ from typing import OrderedDict # type: ignore # until 3.6 dropped
50
+ OrderedDict_OMD = OrderedDict [str , List [_T ]] # type: ignore[assignment, misc]
50
51
51
52
# -------------------------------------------------------------
52
53
You can’t perform that action at this time.
0 commit comments