Skip to content

Commit a1f094c

Browse files
committed
Use git.types.Literal instead of typing.Literal
1 parent 9decf74 commit a1f094c

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-
from git.types import PathLike
33+
from git.types import PathLike, Literal
3534

3635
if TYPE_CHECKING:
3736
from subprocess import Popen
@@ -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)