Skip to content

Commit

Permalink
feat: add PEP 561 compliance (typing in installed package) (#215)
Browse files Browse the repository at this point in the history
In order for typing to work we need to mark package with py.typed file to comply with PEP 561 and let mypy and other tools know that typing should work with that package.
See https://mypy.readthedocs.io/en/stable/installed_packages.html#using-installed-packages-with-mypy-pep-561
  • Loading branch information
ArturLange committed Mar 1, 2024
1 parent e796f04 commit ca7fc41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include *.txt
global-include *.typed
Empty file added openfoodfacts/py.typed
Empty file.

0 comments on commit ca7fc41

Please sign in to comment.