forked from python-eel/Eel
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refined inline types and added type guards to pass mypy --strict type…
…checking
- Loading branch information
1 parent
3ca09bd
commit 65c1fe3
Showing
7 changed files
with
64 additions
and
19 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
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
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
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,15 @@ | ||
from __future__ import annotations | ||
from typing import Dict, List, Tuple, Callable, Optional, Any, TYPE_CHECKING | ||
|
||
if TYPE_CHECKING: | ||
from jinja2 import Environment | ||
Jinja2Environment = Environment | ||
else: | ||
Jinja2Environment = None | ||
|
||
OptionsDictT = Dict[ | ||
str, | ||
Optional[ | ||
str | bool | int | float | List[str] | Tuple[int, int] | Dict[str, Tuple[int, int]] | Callable[..., Any] | Jinja2Environment | ||
] | ||
] |