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/config.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/config.py')
-rw-r--r-- | git/config.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git/config.py b/git/config.py index 1cb80475..0c8d975d 100644 --- a/git/config.py +++ b/git/config.py @@ -16,14 +16,13 @@ import re import fnmatch from collections import OrderedDict -from typing_extensions import Literal - from git.compat import ( defenc, force_text, with_metaclass, is_win, ) +from git.compat.typing import Literal from git.util import LockFile import os.path as osp |