Skip to content

Commit 5e1f110

Browse files
committed
fix: lint dosctrings
1 parent 9e123f3 commit 5e1f110

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

openhexa/sdk/pipelines/parameter/choices.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ def _detect_format(path: str) -> str:
4040
return "yaml" if ext == "yml" else ext
4141

4242
def validate_spec(self):
43+
"""Validate the path and column specification."""
4344
if not self.path or not isinstance(self.path, str):
4445
raise InvalidParameterError("ChoicesFromFile path must be a non-empty string.")
4546
if self.column is not None and not isinstance(self.column, str):
4647
raise InvalidParameterError("ChoicesFromFile column must be a string.")
4748

4849
def to_dict(self) -> dict:
50+
"""Return a dictionary representation of the choices spec."""
4951
return {
5052
"format": self.format,
5153
"path": self.path,

0 commit comments

Comments
 (0)