From d5f97f979e8322c7482d3bc25a22ea0c95251b3d Mon Sep 17 00:00:00 2001 From: Artem Inzhyyants Date: Tue, 24 Dec 2024 23:44:26 +0100 Subject: [PATCH] CDK: fix mypy Signed-off-by: Artem Inzhyyants --- .../declarative/transformations/datetime_normalizer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airbyte_cdk/sources/declarative/transformations/datetime_normalizer.py b/airbyte_cdk/sources/declarative/transformations/datetime_normalizer.py index e13a59d8..2124fa61 100644 --- a/airbyte_cdk/sources/declarative/transformations/datetime_normalizer.py +++ b/airbyte_cdk/sources/declarative/transformations/datetime_normalizer.py @@ -52,8 +52,8 @@ def transform( """ for pointer in self.field_pointers: try: - current_date_time_value: str | int = dpath.get(record, pointer) - parsed_datetime = self.parse_datetime_to_rfc3339(current_date_time_value) + current_date_time_value = dpath.get(record, pointer) # type: ignore [arg-type] + parsed_datetime = self.parse_datetime_to_rfc3339(current_date_time_value) # type: ignore [arg-type] dpath.set(record, pointer, parsed_datetime) except dpath.exceptions.PathNotFound: # if the (potentially nested) property does not exist, silently skip