-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add type support and mypy checking (#100)
* Add type support and mypy checking * Don't need models direct import * Simplify some auto-generated types * Pull mypy settings into config * Disallow untyped calls * Make type annotations 3.5 compatible * Remove ModelBase usage * Explicitly run mypy in tox * Python 3.5 needs typing_extensions * Correct ModelBase usage * Cope with inference from union types * Deal with new action_generator work in tests * Don't use test class in main code! * _skip_field can use Field * Loosen typing-extensions requirement * Fix create_files attribute Co-authored-by: Bernardo Fontes <[email protected]> * Fix unique/ambiguous_models types * Rip out action_generator * Don't need typing-extensions any more * Added changelog entry for type annotations Co-authored-by: Bernardo Fontes <[email protected]>
- Loading branch information
Showing
13 changed files
with
162 additions
and
120 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
Oops, something went wrong.