Skip to content

Commit 87808fd

Browse files
refactor: rename loop variable to avoid shadowing method parameter
Co-Authored-By: sophie.cui@airbyte.io <sophie.cui@airbyte.io>
1 parent 0e324d9 commit 87808fd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

airbyte_cdk/sources/declarative/expanders/record_expander.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ def expand_record(self, record: MutableMapping[Any, Any]) -> Iterable[MutableMap
111111

112112
if "*" in expand_path:
113113
extracted: Any = dpath.values(parent_record, expand_path)
114-
for record in extracted:
115-
if isinstance(record, list):
116-
for item in record:
114+
for extracted_value in extracted:
115+
if isinstance(extracted_value, list):
116+
for item in extracted_value:
117117
if isinstance(item, dict):
118118
expanded_record = dict(item)
119119
self._apply_parent_context(parent_record, expanded_record)

0 commit comments

Comments
 (0)