From 04e181f0a41180370d65d46aad417fb59e1c1c7b Mon Sep 17 00:00:00 2001 From: Yobmod Date: Sat, 24 Jul 2021 22:24:24 +0100 Subject: put ordereddict behind py version guard --- git/types.py | 5 +++-- 1 file 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 -- cgit v1.2.1