Skip to content

Commit

Permalink
remove useless method
Browse files Browse the repository at this point in the history
  • Loading branch information
aakrem committed Apr 2, 2024
1 parent 5cc7ea8 commit 98f87b8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions agenta-cli/agenta/sdk/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,6 @@ def __new__(cls, default: str = None, choices: Dict[str, List[str]] = None):
instance.default = default
return instance

def validate(self, value):
if not any(value in group for group in self.choices.values()):
raise ValueError(
f"{value} is not a valid choice. Available choices are: {self.choices}"
)

@classmethod
def __modify_schema__(cls, field_schema: dict[str, Any], **kwargs):
choices = kwargs.get("choices", {})
Expand Down

0 comments on commit 98f87b8

Please sign in to comment.