Skip to content

Commit

Permalink
Async Retriever: add bool for StreamSlice
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Inzhyyants <[email protected]>
  • Loading branch information
artem1205 committed Dec 30, 2024
1 parent ec8a1a1 commit 8539f82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airbyte_cdk/sources/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,6 @@ def __json_serializable__(self) -> Any:

def __hash__(self) -> int:
return hash(orjson.dumps(self._stream_slice, option=orjson.OPT_SORT_KEYS))

def __bool__(self):
return bool(self._stream_slice) or bool(self._extra_fields)

0 comments on commit 8539f82

Please sign in to comment.