diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-04-21 10:03:11 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-04-23 16:19:19 +0200 |
commit | f8e223263c73a7516e2b216a546079e9a144b3a5 (patch) | |
tree | f7226e621a621b3df1de4fdebb17f3e4421e660d /git/diff.py | |
parent | 4119a576251448793c07ebd080534948cad2f170 (diff) | |
download | gitpython-f8e223263c73a7516e2b216a546079e9a144b3a5.tar.gz |
Use typing-extensions only on Python < 3.8
All necessary attributes are available in the built-in typing module
since Python 3.8. Use typing-extensions only for older versions
of Python, and avoid the unnecessary dep in 3.8+.
Diffstat (limited to 'git/diff.py')
-rw-r--r-- | git/diff.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/diff.py b/git/diff.py index deedb635..943916ea 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 typing_extensions import Final, Literal +from git.compat.typing import Final, Literal from git.types import TBD if TYPE_CHECKING: |