Skip to content

Commit 464848e

Browse files
authored
Update config.py
1 parent d9f140a commit 464848e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

git/config.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@
4141

4242
T_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
4748
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]
5051

5152
# -------------------------------------------------------------
5253

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy