-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update type hints for formatter functions
- Loading branch information
1 parent
25ac435
commit e3167d6
Showing
5 changed files
with
22 additions
and
17 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,6 +1,8 @@ | ||
from typing import Union, Sequence, Dict, Callable | ||
from typing import Union, Sequence, Dict, Callable, Any | ||
|
||
import sqlalchemy | ||
from markupsafe import Markup | ||
|
||
T_COLUMN_LIST = Sequence[Union[str, sqlalchemy.Column]] | ||
T_FORMATTERS = Dict[type, Callable] # todo: Make this tighter | ||
T_FORMATTER = Callable[[Any, Any, Any], Union[str, Markup]] | ||
T_FORMATTERS = Dict[type, T_FORMATTER] |
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