Skip to content

Commit

Permalink
CDK: fix mypy
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Inzhyyants <[email protected]>
  • Loading branch information
artem1205 committed Dec 24, 2024
1 parent e57093a commit d5f97f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5f97f9

Please sign in to comment.