Skip to content

Commit

Permalink
Add PEP-561 py.typed file
Browse files Browse the repository at this point in the history
This commit adds a py.typed file, which marks the package as having type information available.
For more information, see  https://mypy.readthedocs.io/en/stable/installed_packages.html#making-pep-561-compatible-packages

The zip_safe seems to be [still necessary](encode/httpx#193 (reference)),
even though it is [deprecated](python/mypy#8802).
  • Loading branch information
lalten committed Apr 24, 2021
1 parent 70550f9 commit 8a89dfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Empty file added openhtf/py.typed
Empty file.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def run_tests(self):
packages=find_packages(),
package_data={
'openhtf': [
'py.typed',
'output/proto/*.proto', 'output/web_gui/dist/*.*',
'output/web_gui/dist/css/*', 'output/web_gui/dist/js/*',
'output/web_gui/dist/img/*', 'output/web_gui/*.*'
Expand Down Expand Up @@ -222,4 +223,5 @@ def run_tests(self):
'pytest>=2.9.2',
'pytest-cov>=2.2.1',
],
zip_safe=False,
)

0 comments on commit 8a89dfe

Please sign in to comment.