Skip to content

Commit 8d1ecae

Browse files
fix(format): Break long docstring line to meet line length requirements
- Split long docstring line in get_primary_keys method across multiple lines - Addresses @aaronsteers feedback on line length issue in PR comment - Maintains readability while complying with formatting standards Co-Authored-By: AJ Steers <[email protected]>
1 parent be8d806 commit 8d1ecae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

airbyte_cdk/sql/shared/catalog_providers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ def get_primary_keys(
122122
) -> list[str] | None:
123123
"""Return the primary keys for the given stream.
124124
125-
We return `source_defined_primary_key` if set, or `primary_key` otherwise. If both are set, we assume they should not should differ, since Airbyte data integrity constraints do not permit overruling a source's pre-defined primary keys. If neither is set, we return `None`.
125+
We return `source_defined_primary_key` if set, or `primary_key` otherwise. If both are set,
126+
we assume they should not should differ, since Airbyte data integrity constraints do not
127+
permit overruling a source's pre-defined primary keys. If neither is set, we return `None`.
126128
"""
127129
configured_stream = self.get_configured_stream_info(stream_name)
128130
pks = configured_stream.stream.source_defined_primary_key or configured_stream.primary_key

0 commit comments

Comments
 (0)