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

Commit70b53d0

Browse files
committed
Use git.types.Literal instead of typing.Literal
1 parentd037ddc commit70b53d0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎git/diff.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
Any,
2222
Iterator,
2323
List,
24-
Literal,
2524
Match,
2625
Optional,
2726
Sequence,
@@ -31,7 +30,7 @@
3130
Union,
3231
cast,
3332
)
34-
fromgit.typesimportPathLike
33+
fromgit.typesimportPathLike,Literal
3534

3635
ifTYPE_CHECKING:
3736
fromsubprocessimportPopen
@@ -291,7 +290,7 @@ class DiffIndex(List[T_Diff]):
291290
The class improves the diff handling convenience.
292291
"""
293292

294-
change_type:Sequence[Literal["A","C","D","R","M","T"]]= ("A","C","D","R","M","T")
293+
change_type:Sequence[Literal["A","C","D","R","M","T"]]= ("A","C","D","R","M","T")# noqa: F821
295294
"""Change type invariant identifying possible ways a blob can have changed:
296295
297296
* ``A`` = Added

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp