We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9f140a commit 464848eCopy full SHA for 464848e
git/config.py
@@ -41,12 +41,13 @@
41
42
T_ConfigParser = TypeVar('T_ConfigParser', bound='GitConfigParser')
43
44
-if sys.version_info[:2] < (3, 7):
45
- from collections import OrderedDict
46
- OrderedDict_OMD = OrderedDict
+if sys.version_info[:3] < (3, 7, 2):
+ # typing.Ordereddict not added until py 3.7.2
+ from collections import OrderedDict # type: ignore # until 3.6 dropped
47
+ OrderedDict_OMD = OrderedDict # type: ignore # until 3.6 dropped
48
else:
- from typing import OrderedDict
49
- OrderedDict_OMD = OrderedDict[str, List[_T]]
+ from typing import OrderedDict # type: ignore # until 3.6 dropped
50
+ OrderedDict_OMD = OrderedDict[str, List[_T]] # type: ignore[assignment, misc]
51
52
# -------------------------------------------------------------
53
0 commit comments