summaryrefslogtreecommitdiff
path: root/git/repo/base.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-04-21 10:03:11 +0200
committerMichał Górny <mgorny@gentoo.org>2021-04-23 16:19:19 +0200
commitf8e223263c73a7516e2b216a546079e9a144b3a5 (patch)
treef7226e621a621b3df1de4fdebb17f3e4421e660d /git/repo/base.py
parent4119a576251448793c07ebd080534948cad2f170 (diff)
downloadgitpython-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/repo/base.py')
-rw-r--r--git/repo/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index b1d0cdbc..ed0a810e 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -34,8 +34,8 @@ import gitdb
# typing ------------------------------------------------------
+from git.compat.typing import Literal
from git.types import TBD, PathLike
-from typing_extensions import Literal
from typing import (Any, BinaryIO, Callable, Dict,
Iterator, List, Mapping, Optional,
TextIO, Tuple, Type, Union,