diff options
author | Yobmod <yobmod@gmail.com> | 2021-05-18 13:11:25 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-05-18 13:11:25 +0100 |
commit | 11837f61aa4b5c286c6ee9870e23a7ee342858c5 (patch) | |
tree | e820831d1ee7bf6f060a6c8b2c226c807ebd34a5 /git/diff.py | |
parent | c30bf3ba7548a0e996907b9a097ec322760eb43a (diff) | |
download | gitpython-11837f61aa4b5c286c6ee9870e23a7ee342858c5.tar.gz |
Add types to objects.base.py
Diffstat (limited to 'git/diff.py')
-rw-r--r-- | git/diff.py | 4 |
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})') |