Skip to content

Commit f6cf99c

Browse files
fix: Use Sequence instead of list for covariant type annotations in RecordExpander
Co-Authored-By: alfredo.garcia@airbyte.io <freddy.garcia7.fg@gmail.com>
1 parent 1f31837 commit f6cf99c

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
@@ -3,7 +3,7 @@
33
#
44

55
from dataclasses import InitVar, dataclass, field
6-
from typing import Any, Iterable, Mapping, MutableMapping
6+
from typing import Any, Iterable, Mapping, MutableMapping, Sequence
77

88
import dpath
99

@@ -15,7 +15,7 @@
1515
class ParentFieldMapping:
1616
"""Defines a mapping from a parent record field to a child record field."""
1717

18-
source_field_path: list[str | InterpolatedString]
18+
source_field_path: Sequence[str | InterpolatedString]
1919
target_field: str
2020
config: Config
2121
parameters: InitVar[Mapping[str, Any]]
@@ -86,7 +86,7 @@ class RecordExpander:
8686
config: The user-provided configuration as specified by the source's spec.
8787
"""
8888

89-
expand_records_from_field: list[str | InterpolatedString]
89+
expand_records_from_field: Sequence[str | InterpolatedString]
9090
config: Config
9191
parameters: InitVar[Mapping[str, Any]]
9292
remain_original_record: bool = False

0 commit comments

Comments
 (0)