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 4141
4242T_ConfigParser = TypeVar ('T_ConfigParser' , bound = 'GitConfigParser' )
4343
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
4748else :
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]
5051
5152# -------------------------------------------------------------
5253
You can’t perform that action at this time.
0 commit comments