From e4caa80cc6b6ee2b9c031a7d743d61b4830f2a7e Mon Sep 17 00:00:00 2001 From: Yobmod Date: Mon, 5 Jul 2021 14:03:23 +0100 Subject: put typing_extensions.get_types() behind python version guard --- git/types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'git') 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 -- cgit v1.2.1