-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: use Self Signed-off-by: Henry Schreiner <[email protected]> * ci: recache Signed-off-by: Henry Schreiner <[email protected]> * Cleanup * Reverse to previous version of mypy --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: Eduardo Rodrigues <[email protected]>
- Loading branch information
1 parent
52a51ca
commit c9b6f7b
Showing
5 changed files
with
38 additions
and
33 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
Empty file.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from __future__ import annotations | ||
|
||
import sys | ||
import typing | ||
|
||
if sys.version_info < (3, 8): | ||
from typing_extensions import TypedDict | ||
else: | ||
from typing import TypedDict | ||
|
||
if sys.version_info < (3, 11): | ||
if typing.TYPE_CHECKING: | ||
from typing_extensions import Self | ||
else: | ||
Self = object | ||
else: | ||
from typing import Self | ||
|
||
|
||
__all__ = ["TypedDict", "Self"] |
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
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