Skip to content

Commit

Permalink
fix new fn callsite
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Dec 7, 2023
1 parent e09c3c0 commit 1581849
Showing 1 changed file with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,17 @@ def __new__(
step_description: str,
):
"""Maintains the properties of the context that are provided at bind time."""

def __new__(cls):
return super(BoundProperties, cls).__new__(
cls,
op_def=check.inst_param(op_def, "op_def", OpDefinition),
tags=check.dict_param(tags, "tags"),
hook_defs=check.opt_set_param(hook_defs, "hook_defs", HookDefinition),
alias=check.str_param(alias, "alias"),
assets_def=check.opt_inst_param(assets_def, "assets_def", AssetsDefinition),
resources=check.inst_param(resources, "resources", Resources),
op_config=op_config,
step_description=step_description,
)
return super(BoundProperties, cls).__new__(
cls,
op_def=check.inst_param(op_def, "op_def", OpDefinition),
tags=check.dict_param(tags, "tags"),
hook_defs=check.opt_set_param(hook_defs, "hook_defs", HookDefinition),
alias=check.str_param(alias, "alias"),
assets_def=check.opt_inst_param(assets_def, "assets_def", AssetsDefinition),
resources=check.inst_param(resources, "resources", Resources),
op_config=op_config,
step_description=step_description,
)


class RunlessExecutionProperties:
Expand Down

0 comments on commit 1581849

Please sign in to comment.