From 3a61046307cb8d3e6ccdff03e5195f974fb69a79 Mon Sep 17 00:00:00 2001 From: qued <64741807+qued@users.noreply.github.com> Date: Mon, 17 Apr 2023 18:37:50 -0500 Subject: [PATCH] fix: Fix typo in function call (#491) Closes GitHub Issue #487. Fixed typo in call to exactly_one in partition_json. --- CHANGELOG.md | 3 ++- unstructured/__version__.py | 2 +- unstructured/partition/json.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd0c0555e..776018b0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/unstructured/__version__.py b/unstructured/__version__.py index 183959e16..4d6d03a9f 100644 --- a/unstructured/__version__.py +++ b/unstructured/__version__.py @@ -1 +1 @@ -__version__ = "0.5.13-dev6" # pragma: no cover +__version__ = "0.5.13-dev7" # pragma: no cover diff --git a/unstructured/partition/json.py b/unstructured/partition/json.py index e0272c6bc..93cfd13a1 100644 --- a/unstructured/partition/json.py +++ b/unstructured/partition/json.py @@ -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: