Skip to content

Commit

Permalink
fix: Don't include "*args" in parameter_names
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Sep 19, 2024
1 parent 3e62bd9 commit 67c6a1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/schemapi/vega_expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ def with_doc(self) -> Self:
@functools.cached_property
def parameter_names(self) -> frozenset[str]:
if self.parameters:
return frozenset(param.name for param in self.parameters)
return frozenset(
param.name for param in self.parameters if not param.variadic
)
else:
msg = (
f"Cannot provide `parameter_names` until they have been initialized via:\n"
Expand Down

0 comments on commit 67c6a1e

Please sign in to comment.