From dc7528f4d1905b0de4b465be4abb6cc1f33c286f Mon Sep 17 00:00:00 2001 From: Owen Kephart Date: Mon, 23 Dec 2024 10:53:17 -0500 Subject: [PATCH] [core-api][experimental] direct resource passing --- python_modules/dagster/dagster/_core/definitions/assets.py | 1 - .../dagster/_core/definitions/decorators/asset_decorator.py | 3 --- .../dagster/dagster/_core/definitions/source_asset.py | 2 -- 3 files changed, 6 deletions(-) diff --git a/python_modules/dagster/dagster/_core/definitions/assets.py b/python_modules/dagster/dagster/_core/definitions/assets.py index 11893a684f360..a0866204f18dc 100644 --- a/python_modules/dagster/dagster/_core/definitions/assets.py +++ b/python_modules/dagster/dagster/_core/definitions/assets.py @@ -406,7 +406,6 @@ def __call__(self, *args: object, **kwargs: object) -> object: return direct_invocation_result(self, *args, **kwargs) @public - @experimental_param(param="resource_defs") @staticmethod def from_graph( graph_def: "GraphDefinition", diff --git a/python_modules/dagster/dagster/_core/definitions/decorators/asset_decorator.py b/python_modules/dagster/dagster/_core/definitions/decorators/asset_decorator.py index 8bee72971b227..8a335f82b9719 100644 --- a/python_modules/dagster/dagster/_core/definitions/decorators/asset_decorator.py +++ b/python_modules/dagster/dagster/_core/definitions/decorators/asset_decorator.py @@ -131,8 +131,6 @@ def _validate_hidden_non_argument_dep_param( return non_argument_deps -@experimental_param(param="resource_defs") -@experimental_param(param="io_manager_def") @experimental_param(param="backfill_policy") @hidden_param( param="non_argument_deps", @@ -528,7 +526,6 @@ def create_assets_def_from_fn_and_decorator_args( return builder.create_assets_definition() -@experimental_param(param="resource_defs") @hidden_param( param="non_argument_deps", breaking_version="2.0.0", diff --git a/python_modules/dagster/dagster/_core/definitions/source_asset.py b/python_modules/dagster/dagster/_core/definitions/source_asset.py index aa988c234178c..603957c343dc9 100644 --- a/python_modules/dagster/dagster/_core/definitions/source_asset.py +++ b/python_modules/dagster/dagster/_core/definitions/source_asset.py @@ -167,8 +167,6 @@ def fn(context: OpExecutionContext) -> Output[None]: return DecoratedOpFunction(fn) -@experimental_param(param="resource_defs") -@experimental_param(param="io_manager_def") @experimental_param(param="freshness_policy") @deprecated( breaking_version="2.0.0",