From 8160e90433822e21dd6b10ea306aba7903540f68 Mon Sep 17 00:00:00 2001 From: Nick Schrock Date: Sun, 9 Jun 2024 14:54:36 -0400 Subject: [PATCH] make create trivial --- .../_core/definitions/decorators/asset_check_decorator.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/python_modules/dagster/dagster/_core/definitions/decorators/asset_check_decorator.py b/python_modules/dagster/dagster/_core/definitions/decorators/asset_check_decorator.py index 9655a7ec8dfd6..e1378ba373fff 100644 --- a/python_modules/dagster/dagster/_core/definitions/decorators/asset_check_decorator.py +++ b/python_modules/dagster/dagster/_core/definitions/decorators/asset_check_decorator.py @@ -263,14 +263,10 @@ def inner(fn: AssetCheckFunction) -> AssetChecksDefinition: ) op_def = builder.create_op_definition() - return AssetChecksDefinition.create( - keys_by_input_name={ - input_tuple[0]: asset_key - for asset_key, input_tuple in named_in_by_asset_key.items() - }, + keys_by_input_name=builder.asset_keys_by_input_name, node_def=op_def, - resource_defs=resource_defs_for_execution, + resource_defs=builder.args.assets_def_resource_defs, check_specs_by_output_name={op_def.output_defs[0].name: spec}, can_subset=False, )