airbyte-cdk 6.48.14.post1.dev15054311822__py3-none-any.whl → 6.48.14.post2.dev15055659065__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,19 +78,20 @@ class LegacyToPerPartitionStateMigration(StateMigration):
78
78
  "<cursor_field>" : "<cursor_value>"
79
79
  }
80
80
  """
81
- if stream_state:
82
- for key, value in stream_state.items():
83
- if isinstance(value, dict):
84
- keys = list(value.keys())
85
- if len(keys) != 1:
86
- # The input partitioned state should only have one key
87
- return False
88
- if keys[0] != self._cursor_field:
89
- # Unexpected key. Found {keys[0]}. Expected {self._cursor.cursor_field}
90
- return False
91
- # it is expected the internal value to be a dictionary according to docstring
92
- else:
93
- return False
81
+ if not stream_state:
82
+ return False
83
+ for key, value in stream_state.items():
84
+ # it is expected the internal value to be a dictionary according to docstring
85
+ if not isinstance(value, dict):
86
+ return False
87
+ keys = list(value.keys())
88
+ if len(keys) != 1:
89
+ # The input partitioned state should only have one key
90
+ return False
91
+ if keys[0] != self._cursor_field:
92
+ # Unexpected key. Found {keys[0]}. Expected {self._cursor.cursor_field}
93
+ return False
94
+
94
95
  return True
95
96
 
96
97
  def migrate(self, stream_state: Mapping[str, Any]) -> Mapping[str, Any]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-cdk
3
- Version: 6.48.14.post1.dev15054311822
3
+ Version: 6.48.14.post2.dev15055659065
4
4
  Summary: A framework for writing Airbyte Connectors.
5
5
  Home-page: https://airbyte.com
6
6
  License: MIT
@@ -129,7 +129,7 @@ airbyte_cdk/sources/declarative/interpolation/jinja.py,sha256=UQeuS4Vpyp4hlOn-R3
129
129
  airbyte_cdk/sources/declarative/interpolation/macros.py,sha256=UYSJ5gW7TkHALYnNvUnRP3RlyGwGuRMObF3BHuNzjJM,5320
130
130
  airbyte_cdk/sources/declarative/manifest_declarative_source.py,sha256=cZNUOeIogrCmCS7RXeJqQIlnsANigz1cngpLko02M2g,23191
131
131
  airbyte_cdk/sources/declarative/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
132
- airbyte_cdk/sources/declarative/migrations/legacy_to_per_partition_state_migration.py,sha256=9GiDuR4Fs8_tBlf15KlUj_rwJA1X0li5cpwrLw9tKqw,4073
132
+ airbyte_cdk/sources/declarative/migrations/legacy_to_per_partition_state_migration.py,sha256=V2lpYE9LJKvz6BUViHk4vaRGndxNABmPbDCtyYdkqaE,4013
133
133
  airbyte_cdk/sources/declarative/migrations/state_migration.py,sha256=KWPjealMLKSMtajXgkdGgKg7EmTLR-CqqD7UIh0-eDU,794
134
134
  airbyte_cdk/sources/declarative/models/__init__.py,sha256=nUFxNCiKeYRVXuZEKA7GD-lTHxsiKcQ8FitZjKhPIvE,100
135
135
  airbyte_cdk/sources/declarative/models/base_model_with_deprecations.py,sha256=Imnj3yef0aqRdLfaUxkIYISUb8YkiPrRH_wBd-x8HjM,5999
@@ -419,9 +419,9 @@ airbyte_cdk/utils/slice_hasher.py,sha256=EDxgROHDbfG-QKQb59m7h_7crN1tRiawdf5uU7G
419
419
  airbyte_cdk/utils/spec_schema_transformations.py,sha256=-5HTuNsnDBAhj-oLeQXwpTGA0HdcjFOf2zTEMUTTg_Y,816
420
420
  airbyte_cdk/utils/stream_status_utils.py,sha256=ZmBoiy5HVbUEHAMrUONxZvxnvfV9CesmQJLDTAIWnWw,1171
421
421
  airbyte_cdk/utils/traced_exception.py,sha256=C8uIBuCL_E4WnBAOPSxBicD06JAldoN9fGsQDp463OY,6292
422
- airbyte_cdk-6.48.14.post1.dev15054311822.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
423
- airbyte_cdk-6.48.14.post1.dev15054311822.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
424
- airbyte_cdk-6.48.14.post1.dev15054311822.dist-info/METADATA,sha256=AzS8LkzcmckHJwt9xfEGjZSUr6qLxmLh-3Lrz6GGm7g,6365
425
- airbyte_cdk-6.48.14.post1.dev15054311822.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
426
- airbyte_cdk-6.48.14.post1.dev15054311822.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
427
- airbyte_cdk-6.48.14.post1.dev15054311822.dist-info/RECORD,,
422
+ airbyte_cdk-6.48.14.post2.dev15055659065.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
423
+ airbyte_cdk-6.48.14.post2.dev15055659065.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
424
+ airbyte_cdk-6.48.14.post2.dev15055659065.dist-info/METADATA,sha256=AjuFoAUTmKt5Q4DrweJspBD5SE8pT4j-hXVanX4lwbw,6365
425
+ airbyte_cdk-6.48.14.post2.dev15055659065.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
426
+ airbyte_cdk-6.48.14.post2.dev15055659065.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
427
+ airbyte_cdk-6.48.14.post2.dev15055659065.dist-info/RECORD,,