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

Commit18b75d9

Browse files
committed
copy sys.version checks for literal and final to git.types
1 parent6752fad commit18b75d9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎git/types.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
importsys
77
fromtypingimportUnion,Any
88

9+
ifsys.version_info[:2]>= (3,8):
10+
fromtypingimportFinal,Literal# noqa: F401
11+
else:
12+
fromtyping_extensionsimportFinal,Literal# noqa: F401
13+
914

1015
TBD=Any
1116

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp