diff options
author | yobmod <yobmod@gmail.com> | 2021-05-03 16:02:11 +0100 |
---|---|---|
committer | yobmod <yobmod@gmail.com> | 2021-05-03 16:02:11 +0100 |
commit | 18b75d9e63f513e972cbc09c06b040bcdb15aa05 (patch) | |
tree | 1f3ccb535abaf6f5df10f25b39f5b6b80ecf9e0a | |
parent | 6752fad0e93d1d2747f56be30a52fea212bd15d6 (diff) | |
download | gitpython-18b75d9e63f513e972cbc09c06b040bcdb15aa05.tar.gz |
copy sys.version checks for literal and final to git.types
-rw-r--r-- | git/types.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/git/types.py b/git/types.py index 3e33ae0c..40d4f788 100644 --- a/git/types.py +++ b/git/types.py @@ -6,6 +6,11 @@ import os import sys from typing import Union, Any +if sys.version_info[:2] >= (3, 8): + from typing import Final, Literal # noqa: F401 +else: + from typing_extensions import Final, Literal # noqa: F401 + TBD = Any |