Skip to content

Commit

Permalink
throw error if inputs are passed
Browse files Browse the repository at this point in the history
  • Loading branch information
msaipraneeth committed Oct 19, 2023
1 parent ca240a2 commit 7a19402
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmem_plugin_ulid/transform/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def __init__(self, number_of_values=1):
self.number_of_values = number_of_values

def transform(self, inputs: Sequence[Sequence[str]]) -> Sequence[str]:
if inputs:
raise ValueError("Plugin does not support processing input entities.")
result = []
for _ in range(self.number_of_values):
result += [f"{ULID()}"]
Expand Down

0 comments on commit 7a19402

Please sign in to comment.