Skip to content

Commit

Permalink
Ignore variable length args.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer committed Mar 13, 2024
1 parent 292b3e0 commit 91d97c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ops/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,8 @@ class SomeObject:
required_params = [
param.name for param in extra_params
if param.default is inspect.Parameter.empty
and param.kind not in (inspect.Parameter.VAR_POSITIONAL,
inspect.Parameter.VAR_KEYWORD)
]
if required_params:
raise TypeError(
Expand Down

0 comments on commit 91d97c0

Please sign in to comment.