Skip to content

Commit

Permalink
Improve QStub doc
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
greenape and coderabbitai[bot] authored Nov 5, 2024
1 parent 988e0af commit 7075c4e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions flowmachine/flowmachine/core/query_stub.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,25 @@


class QStub(Query):
def __init__(self, deps, qid):
"""
A stub representation of a Query object used for version-aware caching.
This class serves as a lightweight placeholder for cached queries,
particularly when handling queries from different versions.
"""

def __init__(self, deps: list["Query"], qid: str) -> None:
"""
Parameters
----------
deps : list[Query]
The dependencies of the original query
qid : str
The query ID hash of the original query
"""
self.deps = deps
self._md5 = qid
super().__init__()

def _make_query(self):
pass

Expand Down

0 comments on commit 7075c4e

Please sign in to comment.