chore: add py.typed (#3043)

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 <mrobinson@unstructured.io>
This commit is contained in:
Na'aman Hirschfeld 2024-05-20 14:52:04 +02:00 committed by GitHub
parent d7608014c0
commit 8802535e95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -176,5 +176,5 @@ setup(
"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
unstructured/py.typed Normal file
View File

@ -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.