Skip to content

Commit 3506e05

Browse files
refactor: remove @staticmethod from _parse_start_date, use self.DATE_TIME_FORMAT
Co-Authored-By: Daryna Ishchenko <darina.ishchenko17@gmail.com>
1 parent 5245884 commit 3506e05

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

airbyte_cdk/sources/file_based/file_based_stream_reader.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,10 @@ def get_matching_files(
9898
"""
9999
...
100100

101-
@staticmethod
102-
def _parse_start_date(start_date_str: str) -> datetime:
101+
def _parse_start_date(self, start_date_str: str) -> datetime:
103102
"""Parse a start_date string, supporting both with and without microseconds."""
104103
try:
105-
return datetime.strptime(start_date_str, AbstractFileBasedStreamReader.DATE_TIME_FORMAT)
104+
return datetime.strptime(start_date_str, self.DATE_TIME_FORMAT)
106105
except ValueError:
107106
return datetime.strptime(start_date_str, "%Y-%m-%dT%H:%M:%SZ")
108107

0 commit comments

Comments
 (0)