Skip to content

Commit

Permalink
NodeResource: Ensures value assignment is future proof
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyfuture committed Dec 24, 2024
1 parent 73c8d3c commit fbe1f22
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions snakesist/exist_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,11 @@ def __init__(
exist_client: "ExistClient",
query_result: QueryResultItem,
):
self._abs_resource_id = query_result.absolute_id
self._document_path = query_result.document_path
self._exist_client = exist_client
(
self._abs_resource_id,
self._node_id,
self._document_path,
self.node,
) = query_result
self.node = query_result.node
self._node_id = query_result.node_id

def __str__(self):
return str(self.node)
Expand Down

0 comments on commit fbe1f22

Please sign in to comment.