Skip to content

Commit 04e181f

Browse files
committedJul 24, 2021
put ordereddict behind py version guard
1 parent 77ee247 commit 04e181f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎git/types.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
NamedTuple, TYPE_CHECKING, TypeVar) # noqa: F401
99

1010
if sys.version_info[:2] >= (3, 8):
11-
from typing import Final, Literal, SupportsIndex, TypedDict, Protocol, runtime_checkable # noqa: F401
11+
from typing import Final, Literal, SupportsIndex, TypedDict, Protocol, runtime_checkable, OrderedDict # noqa: F401
1212
else:
13-
from typing_extensions import Final, Literal, SupportsIndex, TypedDict, Protocol, runtime_checkable # noqa: F401
13+
from typing_extensions import (Final, Literal, SupportsIndex, # noqa: F401
14+
TypedDict, Protocol, runtime_checkable, OrderedDict) # noqa: F401
1415

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

0 commit comments

Comments
 (0)
Please sign in to comment.