Skip to content

Commit cd5b9f0

Browse files
style: make validator signature multiline with noqa comment
Co-Authored-By: AJ Steers <aj@airbyte.io>
1 parent 198de6d commit cd5b9f0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

airbyte_cdk/sources/file_based/config/abstract_file_based_spec.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ class AbstractFileBasedSpec(BaseModel):
6060
)
6161

6262
@validator("start_date", pre=True)
63-
def validate_start_date(cls, v: Optional[str]) -> Optional[str]:
63+
def validate_start_date(
64+
cls, # noqa: N805 # Pydantic validators use cls, not self
65+
v: Optional[str],
66+
) -> Optional[str]:
6467
"""Validate that start_date is a parseable datetime string.
6568
6669
Uses ab_datetime_try_parse which accepts any common ISO8601/RFC3339 format,

0 commit comments

Comments
 (0)