diff options
author | Yobmod <yobmod@gmail.com> | 2021-07-05 14:03:23 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-07-05 14:03:23 +0100 |
commit | e4caa80cc6b6ee2b9c031a7d743d61b4830f2a7e (patch) | |
tree | c217467dd1215f4e32c108c9f42ed227b6ed1332 | |
parent | 9400246e9255cc8aef83fe950cf200724790d431 (diff) | |
download | gitpython-e4caa80cc6b6ee2b9c031a7d743d61b4830f2a7e.tar.gz |
put typing_extensions.get_types() behind python version guard
-rw-r--r-- | git/types.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git/types.py b/git/types.py index 0f288e10..6604a243 100644 --- a/git/types.py +++ b/git/types.py @@ -5,13 +5,13 @@ import os import sys from typing import (Callable, Dict, NoReturn, Tuple, Union, Any, Iterator, # noqa: F401 - NamedTuple, TYPE_CHECKING, get_args, TypeVar) # noqa: F401 + NamedTuple, TYPE_CHECKING, TypeVar) # noqa: F401 if sys.version_info[:2] >= (3, 8): - from typing import Final, Literal, SupportsIndex, TypedDict, Protocol # noqa: F401 + from typing import Final, Literal, SupportsIndex, TypedDict, Protocol, get_args # noqa: F401 else: - from typing_extensions import Final, Literal, SupportsIndex, TypedDict, Protocol # noqa: F401 + from typing_extensions import Final, Literal, SupportsIndex, TypedDict, Protocol, get_args # noqa: F401 if sys.version_info[:2] >= (3, 10): from typing import TypeGuard # noqa: F401 |