Skip to content
Myr

Initial typing support

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This enables type checking in CI and marks the project as typed.

authored by pgjones · committed by pgjones · parent c791f63 · Browse files · 7 files+49 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

7 files+49 added−0 removed

  • other:+49 added−0 removed

7 files+49 added−0 removed

modified:.github/workflows/tests.yaml+1 added
added:requirements/typing.in+1 added
1mypy
added:requirements/typing.txt+14 added
1#2# This file is autogenerated by pip-compile3# To update, run:4#5# pip-compile requirements/typing.in6#7mypy-extensions==0.4.38 # via mypy9mypy==0.81210 # via -r requirements/typing.in11typed-ast==1.4.312 # via mypy13typing-extensions==3.7.4.314 # via mypy
added:src/flask/py.typed
modified:MANIFEST.in+1 added
5 unmodified lines
6graft docs7prune docs/_build8graft examples9graft tests10include src/flask/py.typed11global-exclude *.pyc
modified:setup.cfg+27 added
83 unmodified lines
84max-line-length = 8085per-file-ignores =86 # __init__ module exports names87 src/flask/__init__.py: F4018889[mypy]90files = src/flask91python_version = 3.692allow_redefinition = True93disallow_subclassing_any = True94# disallow_untyped_calls = True95# disallow_untyped_defs = True96# disallow_incomplete_defs = True97no_implicit_optional = True98local_partial_types = True99# no_implicit_reexport = True100strict_equality = True101warn_redundant_casts = True102warn_unused_configs = True103warn_unused_ignores = True104# warn_return_any = True105# warn_unreachable = True106107[mypy-asgiref.*]108ignore_missing_imports = True109110[mypy-blinker.*]111ignore_missing_imports = True112113[mypy-dotenv.*]114ignore_missing_imports = True
modified:tox.ini+5 added
1[tox]2envlist =3 py{39,38,37,36,py3}4 style5 typing6 docs7skip_missing_interpreters = true89[testenv]
14 unmodified lines
24deps = pre-commit25skip_install = true26commands = pre-commit run --all-files --show-diff-on-failure2728[testenv:typing]29deps = -r requirements/typing.txt30commands = mypy3132[testenv:docs]33deps =34 -r requirements/docs.txt35
2 unmodified lines