-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: type hints to top level functions (#218)
* WIP: add type hints to top level functions TODO: - see if mypy picks up types when installing in new project - setup mypy in CI fixes #215 * add mypy to ci & move py.typed to correct folder? * try and get mypy to run in CI * run mypy in travis? * use mypy defaults for python_version and platform https://mypy.readthedocs.io/en/stable/config_file.html#platform-configuration * update change log with changes
- Loading branch information
Showing
8 changed files
with
58 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[mypy] | ||
show_column_numbers=True | ||
pretty=True | ||
|
||
disallow_any_unimported=True | ||
# _bcrypt usage will result in any exprs | ||
disallow_any_expr=False | ||
disallow_any_decorated=True | ||
disallow_any_explicit=True | ||
disallow_any_generics=True | ||
disallow_subclassing_any=True | ||
|
||
disallow_untyped_calls=True | ||
disallow_untyped_defs=True | ||
disallow_incomplete_defs=True | ||
check_untyped_defs=True | ||
disallow_untyped_decorators=True | ||
|
||
no_implicit_optional=True | ||
strict_optional=True | ||
|
||
warn_redundant_casts=True | ||
warn_unused_ignores=True | ||
warn_no_return=True | ||
# _bcrypt is untyped so all calls involving it will be Any | ||
warn_return_any=False | ||
# keep backwards compatibility for users not using static type checking | ||
warn_unreachable=False | ||
|
||
strict_equality=True | ||
|
||
ignore_missing_imports=False |
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