From f8e223263c73a7516e2b216a546079e9a144b3a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 21 Apr 2021 10:03:11 +0200 Subject: 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+. --- git/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git/config.py') 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 -- cgit v1.2.1