This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9656b42
commit fe7547d
Showing
2 changed files
with
4 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
import sys | ||
|
||
if sys.version_info >= (3, 8): | ||
from typing import ( | ||
Protocol as Protocol, | ||
TypedDict as TypedDict, | ||
) | ||
from typing import Protocol, TypedDict | ||
else: | ||
from typing_extensions import ( | ||
Protocol as Protocol, | ||
TypedDict as TypedDict, | ||
) | ||
from typing_extensions import Protocol, TypedDict | ||
|
||
__all__ = ("Protocol", "TypedDict") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,10 @@ | |
Iterable, | ||
List, | ||
Mapping, | ||
NewType, | ||
Optional, | ||
Set, | ||
Tuple, | ||
Type, | ||
TypedDict, | ||
TypeVar, | ||
Union, | ||
) | ||
|