Add type annotations (PEP 484) (#25)

This commit is contained in:
Sergey Petrov
2019-07-29 01:26:15 +03:00
committed by GitHub
parent be7438a653
commit fde28abb04
9 changed files with 151 additions and 76 deletions
+28
View File
@@ -1,5 +1,33 @@
[bdist_wheel]
universal=1
[mypy]
python_version = 3.5
# Dynamic typing
disallow_subclassing_any = True
disallow_any_generics = True
# Untyped definitions and calls
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
disallow_untyped_decorators = True
# None and Optional handling
no_implicit_optional = True
# Warnings
warn_redundant_casts = True
warn_unused_ignores = True
no_warn_no_return = True
warn_return_any = True
warn_unreachable = True
# Other strictness checks
strict_equality = True
no_implicit_reexport = True
[pep8]
max-line-length = 160