Skip to content

Commit

Permalink
make type checkers aware of the type annotations
Browse files Browse the repository at this point in the history
It is not enough to have type annotations, you must include an emtpy
file with the name `py.typed`.
  • Loading branch information
jugmac00 committed May 9, 2021
1 parent 80654e1 commit f744526
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Changelog

unreleased
----------
- nothing yet
- make type checkers aware that this library is using type annotations


1.0.0 (2021.04.07)
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ include *.yaml
include *.toml
include tox.ini
recursive-include tests *.py
# make type checkers aware of type annotations
include src/flask_uploads/py.typed

recursive-include docs *.txt
include docs/Makefile
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def read(*parts):
package_dir={"": "src"},
zip_safe=False,
platforms="any",
include_package_data=True,
install_requires=["Flask>=1.0.4"],
extras_require={
"test": [
Expand Down
Empty file added src/flask_uploads/py.typed
Empty file.

0 comments on commit f744526

Please sign in to comment.