Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds types to the Security constructor and init_app. This required major refactoring of how initialization happened since prior to this all arguments were added to kwargs (including default forms, config variables, etc) then set as attributes on the instance. Not easy to provide types for each one. We remove all that, remove the _SecurityState class and concept. Furthermore - in many places - we change from using _securyty.attr and use config_value("xxx"). Improve performance of config_value - no reason to create a dictonary every time - just query the key! Add typing to more tests and views to help verify the types make sense. Fix view responses - the types should be flask.ResponsValue - not Response Fix 'within' and 'grace' typing - then can take floats. closes: #140
- Loading branch information
Showing
13 changed files
with
587 additions
and
409 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
Oops, something went wrong.