Skip to content

Commit

Permalink
chore: add py.typed (#3043)
Browse files Browse the repository at this point in the history
This PR adds `py.typed`, which will fix issues of the following type:

![Uploading Screenshot 2024-05-17 at 12.13.33.png…]()

---------

Co-authored-by: Matt Robinson <[email protected]>
  • Loading branch information
Goldziher and MthwRobinson authored May 20, 2024
1 parent d760801 commit 8802535
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
* **Fix possible `SyntaxError` or `SyntaxWarning` on regex patterns.** Change regex patterns to raw strings to avoid these warnings/errors in Python 3.11+.
* **Fix disk-space leak in `partition_odt()`.** Remove temporary file created but not removed when `file` argument is passed to `partition_odt()`.
* **AstraDB: option to prevent indexing metadata**

* **Fix Missing py.typed**

## 0.13.7

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,5 @@ def load_requirements(file_list: Optional[Union[str, List[str]]] = None) -> List
"databricks-volumes": load_requirements("requirements/ingest/databricks-volumes.in"),
},
package_dir={"unstructured": "unstructured"},
package_data={"unstructured": ["nlp/*.txt"]},
package_data={"unstructured": ["nlp/*.txt", "py.typed"]},
)
2 changes: 2 additions & 0 deletions unstructured/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# this is a marker used by static type checkers such as MyPy
# see: https://peps.python.org/pep-0561/ for reference.

0 comments on commit 8802535

Please sign in to comment.