From e82682ad7c4a43f1a514f23955d84a23e50a69ac Mon Sep 17 00:00:00 2001 From: Artem Inzhyyants Date: Wed, 8 Jan 2025 21:47:22 +0100 Subject: [PATCH] CDK: rename Signed-off-by: Artem Inzhyyants --- airbyte_cdk/sources/declarative/extractors/__init__.py | 4 ++-- airbyte_cdk/sources/declarative/extractors/record_selector.py | 4 ++-- .../sources/declarative/extractors/type_transformer.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/airbyte_cdk/sources/declarative/extractors/__init__.py b/airbyte_cdk/sources/declarative/extractors/__init__.py index 261520881..8f1d18d12 100644 --- a/airbyte_cdk/sources/declarative/extractors/__init__.py +++ b/airbyte_cdk/sources/declarative/extractors/__init__.py @@ -9,10 +9,10 @@ from airbyte_cdk.sources.declarative.extractors.response_to_file_extractor import ( ResponseToFileExtractor, ) -from airbyte_cdk.sources.declarative.extractors.type_transformer import AbstractTypeTransformer +from airbyte_cdk.sources.declarative.extractors.type_transformer import TypeTransformer __all__ = [ - "AbstractTypeTransformer", + "TypeTransformer", "HttpSelector", "DpathExtractor", "RecordFilter", diff --git a/airbyte_cdk/sources/declarative/extractors/record_selector.py b/airbyte_cdk/sources/declarative/extractors/record_selector.py index 9b4f90d07..17232a708 100644 --- a/airbyte_cdk/sources/declarative/extractors/record_selector.py +++ b/airbyte_cdk/sources/declarative/extractors/record_selector.py @@ -10,7 +10,7 @@ from airbyte_cdk.sources.declarative.extractors.http_selector import HttpSelector from airbyte_cdk.sources.declarative.extractors.record_extractor import RecordExtractor from airbyte_cdk.sources.declarative.extractors.record_filter import RecordFilter -from airbyte_cdk.sources.declarative.extractors.type_transformer import AbstractTypeTransformer +from airbyte_cdk.sources.declarative.extractors.type_transformer import TypeTransformer as DeclarativeTypeTransformer from airbyte_cdk.sources.declarative.interpolation import InterpolatedString from airbyte_cdk.sources.declarative.models import SchemaNormalization from airbyte_cdk.sources.declarative.transformations import RecordTransformation @@ -34,7 +34,7 @@ class RecordSelector(HttpSelector): extractor: RecordExtractor config: Config parameters: InitVar[Mapping[str, Any]] - schema_normalization: Union[TypeTransformer, AbstractTypeTransformer] + schema_normalization: Union[TypeTransformer, DeclarativeTypeTransformer] name: str _name: Union[InterpolatedString, str] = field(init=False, repr=False, default="") record_filter: Optional[RecordFilter] = None diff --git a/airbyte_cdk/sources/declarative/extractors/type_transformer.py b/airbyte_cdk/sources/declarative/extractors/type_transformer.py index f9e107fe4..fe307684f 100644 --- a/airbyte_cdk/sources/declarative/extractors/type_transformer.py +++ b/airbyte_cdk/sources/declarative/extractors/type_transformer.py @@ -8,7 +8,7 @@ @dataclass -class AbstractTypeTransformer(ABC): +class TypeTransformer(ABC): """ Abstract base class for implementing type transformation logic.