Skip to content

Commit 8a89dfe

Browse files
committed
Add PEP-561 py.typed file
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).
1 parent 70550f9 commit 8a89dfe

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

openhtf/py.typed

Whitespace-only changes.

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ def run_tests(self):
192192
packages=find_packages(),
193193
package_data={
194194
'openhtf': [
195+
'py.typed',
195196
'output/proto/*.proto', 'output/web_gui/dist/*.*',
196197
'output/web_gui/dist/css/*', 'output/web_gui/dist/js/*',
197198
'output/web_gui/dist/img/*', 'output/web_gui/*.*'
@@ -222,4 +223,5 @@ def run_tests(self):
222223
'pytest>=2.9.2',
223224
'pytest-cov>=2.2.1',
224225
],
226+
zip_safe=False,
225227
)

0 commit comments

Comments
 (0)