Skip to content

Commit

Permalink
Add type hint stub (#780)
Browse files Browse the repository at this point in the history
Summary:
Fixes #779

### Changes

- Add `py.typed` file stub
- Include the file into package data

Pull Request resolved: #780

Reviewed By: NivekT

Differential Revision: D39620230

Pulled By: ejguan

fbshipit-source-id: 0661c08bfdaad66a5e50506937d1339fb2865fec
  • Loading branch information
ejguan authored and facebook-github-bot committed Sep 19, 2022
1 parent 0b973a8 commit 2212cb7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def remove_extension(pattern):
],
package_data={
"torchdata": [
"py.typed",
"datapipes/iter/*.pyi",
"datapipes/map/*.pyi",
],
Expand Down
Empty file added torchdata/py.typed
Empty file.

0 comments on commit 2212cb7

Please sign in to comment.