Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3abc837 commit 6791424Copy full SHA for 6791424
git/config.py
@@ -43,12 +43,8 @@
43
44
if sys.version_info[:3] < (3, 7, 2):
45
# typing.Ordereddict not added until py 3.7.2
46
- from collections import OrderedDict
47
- OrderedDict_OMD = OrderedDict
48
-elif sys.version_info[:2] >= (3, 10):
49
- # then deprecated from 3.10 as collections.OrderedDict was made generic
50
51
- 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
52
else:
53
from typing import OrderedDict # type: ignore # until 3.6 dropped
54
OrderedDict_OMD = OrderedDict[str, List[_T]] # type: ignore[assignment, misc]
0 commit comments