Skip to content

Commit e4caa80

Browse files
committed
put typing_extensions.get_types() behind python version guard
1 parent 9400246 commit e4caa80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎git/types.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
import os
66
import sys
77
from typing import (Callable, Dict, NoReturn, Tuple, Union, Any, Iterator, # noqa: F401
8-
NamedTuple, TYPE_CHECKING, get_args, TypeVar) # noqa: F401
8+
NamedTuple, TYPE_CHECKING, TypeVar) # noqa: F401
99

1010

1111
if sys.version_info[:2] >= (3, 8):
12-
from typing import Final, Literal, SupportsIndex, TypedDict, Protocol # noqa: F401
12+
from typing import Final, Literal, SupportsIndex, TypedDict, Protocol, get_args # noqa: F401
1313
else:
14-
from typing_extensions import Final, Literal, SupportsIndex, TypedDict, Protocol # noqa: F401
14+
from typing_extensions import Final, Literal, SupportsIndex, TypedDict, Protocol, get_args # noqa: F401
1515

1616
if sys.version_info[:2] >= (3, 10):
1717
from typing import TypeGuard # noqa: F401

0 commit comments

Comments
 (0)