diff options
Diffstat (limited to 'git/compat/typing.py')
-rw-r--r-- | git/compat/typing.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/git/compat/typing.py b/git/compat/typing.py new file mode 100644 index 00000000..925c5ba2 --- /dev/null +++ b/git/compat/typing.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +# config.py +# Copyright (C) 2021 Michael Trier (mtrier@gmail.com) and contributors +# +# This module is part of GitPython and is released under +# the BSD License: http://www.opensource.org/licenses/bsd-license.php + +import sys + +if sys.version_info[:2] >= (3, 8): + from typing import Final, Literal # noqa: F401 +else: + from typing_extensions import Final, Literal # noqa: F401 |