fix: Fix typo in function call (#491)

Closes GitHub Issue #487. Fixed typo in call to exactly_one in partition_json.
This commit is contained in:
qued 2023-04-17 18:37:50 -05:00 committed by GitHub
parent 5657378602
commit 3a61046307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
## 0.5.13-dev6
## 0.5.13-dev7
### Enhancements
@ -10,6 +10,7 @@
### Fixes
* Fixed typo in call to `exactly_one` in `partition_json`
* unstructured-documents encode xml string if document_tree is `None` in `_read_xml`.
* Update to `_read_xml` so that Markdown files with embedded HTML process correctly.
* Fallback to "fast" strategy only emits a warning if the user specifies the "hi_res" strategy.

View File

@ -1 +1 @@
__version__ = "0.5.13-dev6" # pragma: no cover
__version__ = "0.5.13-dev7" # pragma: no cover

View File

@ -18,7 +18,7 @@ def partition_json(
if text is not None and text.strip() == "" and not file and not filename:
return []
exactly_one(filenmae=filename, file=file, text=text)
exactly_one(filename=filename, file=file, text=text)
if filename is not None:
with open(filename, encoding="utf8") as f: