From bd2e5affd196b2f36dfc0fb8bbbae07771dde188 Mon Sep 17 00:00:00 2001 From: Aaron Steers Date: Wed, 4 Dec 2024 09:57:13 -0800 Subject: [PATCH] add deprecated notice to docstring --- airbyte_cdk/sources/streams/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/airbyte_cdk/sources/streams/core.py b/airbyte_cdk/sources/streams/core.py index d9bf95f48..a9aa8550a 100644 --- a/airbyte_cdk/sources/streams/core.py +++ b/airbyte_cdk/sources/streams/core.py @@ -440,7 +440,9 @@ def state_checkpoint_interval(self) -> Optional[int]: def get_updated_state( self, current_stream_state: MutableMapping[str, Any], latest_record: Mapping[str, Any] ) -> MutableMapping[str, Any]: - """Override to extract state from the latest record. Needed to implement incremental sync. + """DEPRECATED. Please use explicit state property instead, see `IncrementalMixin` docs. + + Override to extract state from the latest record. Needed to implement incremental sync. Inspects the latest record extracted from the data source and the current state object and return an updated state object.