Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit464848e

Browse files
authored
Update config.py
1 parentd9f140a commit464848e

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-
ifsys.version_info[:2]< (3,7):
45-
fromcollectionsimportOrderedDict
46-
OrderedDict_OMD=OrderedDict
44+
ifsys.version_info[:3]< (3,7,2):
45+
# typing.Ordereddict not added until py 3.7.2
46+
fromcollectionsimportOrderedDict# type: ignore # until 3.6 dropped
47+
OrderedDict_OMD=OrderedDict# type: ignore # until 3.6 dropped
4748
else:
48-
fromtypingimportOrderedDict
49-
OrderedDict_OMD=OrderedDict[str,List[_T]]
49+
fromtypingimportOrderedDict# 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)

[8]ページ先頭

©2009-2025 Movatter.jp