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

Commit04e181f

Browse files
committed
put ordereddict behind py version guard
1 parent77ee247 commit04e181f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎git/types.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
NamedTuple,TYPE_CHECKING,TypeVar)# noqa: F401
99

1010
ifsys.version_info[:2]>= (3,8):
11-
fromtypingimportFinal,Literal,SupportsIndex,TypedDict,Protocol,runtime_checkable# noqa: F401
11+
fromtypingimportFinal,Literal,SupportsIndex,TypedDict,Protocol,runtime_checkable,OrderedDict# noqa: F401
1212
else:
13-
fromtyping_extensionsimportFinal,Literal,SupportsIndex,TypedDict,Protocol,runtime_checkable# noqa: F401
13+
fromtyping_extensionsimport (Final,Literal,SupportsIndex,# noqa: F401
14+
TypedDict,Protocol,runtime_checkable,OrderedDict)# noqa: F401
1415

1516
# if sys.version_info[:2] >= (3, 10):
1617
# from typing import TypeGuard # noqa: F401

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp