Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
austintlee committed Feb 14, 2025
1 parent e8bd9d0 commit e608ab5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sycamore/sycamore/connectors/aryn/ArynReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ def _to_doc(self, doc: dict[str, Any]) -> dict[str, Any]:

doc = aryn_client.get_doc(self._query_params.docset_id, doc["doc_id"])
elements = doc.get("elements", [])
doc = Document(**doc)
doc.data["elements"] = [create_element(**element) for element in elements]
return {"doc": Document.serialize(doc)}
document = Document(**doc)
document.data["elements"] = [create_element(**element) for element in elements]
return {"doc": Document.serialize(document)}

def execute(self, **kwargs) -> "Dataset":

Expand Down

0 comments on commit e608ab5

Please sign in to comment.