summaryrefslogtreecommitdiff
path: root/git/diff.py
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2021-06-18 11:28:33 +0800
committerGitHub <noreply@github.com>2021-06-18 11:28:33 +0800
commit6a0d131ece696f259e7ab42a064ceb10dabb1fcc (patch)
treefb07007006ec6af0dccbcd6a62abc4c6589dcfd3 /git/diff.py
parentb0f79c58ad919e90261d1e332df79a4ad0bc40de (diff)
parent18b6aa55309adfa8aa99bdaf9e8f80337befe74e (diff)
downloadgitpython-6a0d131ece696f259e7ab42a064ceb10dabb1fcc.tar.gz
Merge pull request #1271 from Yobmod/main
Add initial types to object, and fix CI
Diffstat (limited to 'git/diff.py')
-rw-r--r--git/diff.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/diff.py b/git/diff.py
index a40fc244..346a2ca7 100644
--- a/git/diff.py
+++ b/git/diff.py
@@ -16,7 +16,7 @@ from .objects.util import mode_str_to_int
# typing ------------------------------------------------------------------
from typing import Any, Iterator, List, Match, Optional, Tuple, Type, Union, TYPE_CHECKING
-from git.types import PathLike, TBD, Final, Literal
+from git.types import PathLike, TBD, Literal
if TYPE_CHECKING:
from .objects.tree import Tree
@@ -31,7 +31,7 @@ Lit_change_type = Literal['A', 'D', 'M', 'R', 'T']
__all__ = ('Diffable', 'DiffIndex', 'Diff', 'NULL_TREE')
# Special object to compare against the empty tree in diffs
-NULL_TREE = object() # type: Final[object]
+NULL_TREE = object()
_octal_byte_re = re.compile(b'\\\\([0-9]{3})')