Hypergraph is more powerful. Transform unstructured text into structured knowledge with LLMs. Graphs, hypergraphs, and spatio-temporal extractions — with one command.
style: apply ruff format on SearchHits helpers
Cursor Agent031a387e1851
diff --git a/hyperextract/utils/exporters/common.py b/hyperextract/utils/exporters/common.pyindex 051d343..dc25947 100644--- a/hyperextract/utils/exporters/common.py+++ b/hyperextract/utils/exporters/common.py@@ -152,8 +152,7 @@ def resolve_export_file(path: str | Path, *, overwrite: bool = False) -> Path:existing_nonempty = dest.exists() and dest.is_file() and dest.stat().st_size > 0if existing_nonempty and not overwrite:raise FileExistsError(- f"Destination '{dest}' already exists. "- "Pass overwrite=True to overwrite it."+ f"Destination '{dest}' already exists. Pass overwrite=True to overwrite it.")dest.parent.mkdir(parents=True, exist_ok=True)return destdiff --git a/hyperextract/utils/search_results.py b/hyperextract/utils/search_results.pyindex fe5d85e..9f19905 100644--- a/hyperextract/utils/search_results.py+++ b/hyperextract/utils/search_results.py@@ -72,7 +72,5 @@ def coerce_search_results(results: Any) -> SearchHits:payload["community_context"] = dump_search_value(results[2])return SearchHits(kind="graph", payload=payload)if isinstance(results, list):- return SearchHits(- kind="list", payload={"results": dump_search_value(results)}- )+ return SearchHits(kind="list", payload={"results": dump_search_value(results)})return SearchHits(kind="list", payload={"results": [dump_search_value(results)]})