Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add py.typed to let mypy get stub for type information #4412

Merged
merged 7 commits into from
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ recursive-include tools *
include VERSION_NUMBER
include CMakeLists.txt
include requirements.txt
include onnx/py.typed
1 change: 1 addition & 0 deletions onnx/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Marker file for PEP-561 (inline types)
jcwchen marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ def run(self):
packages=packages,
license="Apache License v2.0",
include_package_data=True,
package_data={"onnx": ["py.typed"]},
jcwchen marked this conversation as resolved.
Show resolved Hide resolved
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=tests_require,
Expand Down