diff options
author | Yobmod <yobmod@gmail.com> | 2021-07-24 22:24:24 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-07-24 22:24:24 +0100 |
commit | 04e181f0a41180370d65d46aad417fb59e1c1c7b (patch) | |
tree | 33fb25dbdcf01fd94b37794fbfa5b7f5581d199d | |
parent | 77ee247a9018c6964642cf31a2690f3a4367649c (diff) | |
download | gitpython-04e181f0a41180370d65d46aad417fb59e1c1c7b.tar.gz |
put ordereddict behind py version guard
-rw-r--r-- | git/types.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/git/types.py b/git/types.py index 05c5b345..25608006 100644 --- a/git/types.py +++ b/git/types.py @@ -8,9 +8,10 @@ from typing import (Callable, Dict, NoReturn, Sequence, Tuple, Union, Any, Itera NamedTuple, TYPE_CHECKING, TypeVar) # noqa: F401 if sys.version_info[:2] >= (3, 8): - from typing import Final, Literal, SupportsIndex, TypedDict, Protocol, runtime_checkable # noqa: F401 + from typing import Final, Literal, SupportsIndex, TypedDict, Protocol, runtime_checkable, OrderedDict # noqa: F401 else: - from typing_extensions import Final, Literal, SupportsIndex, TypedDict, Protocol, runtime_checkable # noqa: F401 + from typing_extensions import (Final, Literal, SupportsIndex, # noqa: F401 + TypedDict, Protocol, runtime_checkable, OrderedDict) # noqa: F401 # if sys.version_info[:2] >= (3, 10): # from typing import TypeGuard # noqa: F401 |