diff --git a/python_modules/dagster/dagster/_core/execution/context/compute.py b/python_modules/dagster/dagster/_core/execution/context/compute.py index 799a3ffa7d292..050115d28f458 100644 --- a/python_modules/dagster/dagster/_core/execution/context/compute.py +++ b/python_modules/dagster/dagster/_core/execution/context/compute.py @@ -1365,6 +1365,7 @@ def get() -> "OpExecutionContext": ######## AssetExecutionContext ############################### + def _copy_docs_from_op_execution_context(obj): setattr(obj, "__doc__", getattr(OpExecutionContext, obj.__name__).__doc__) return obj diff --git a/python_modules/dagster/dagster_tests/core_tests/execution_tests/test_asset_execution_context.py b/python_modules/dagster/dagster_tests/core_tests/execution_tests/test_asset_execution_context.py index b5716a42e2c76..bad2c5f588979 100644 --- a/python_modules/dagster/dagster_tests/core_tests/execution_tests/test_asset_execution_context.py +++ b/python_modules/dagster/dagster_tests/core_tests/execution_tests/test_asset_execution_context.py @@ -4,6 +4,7 @@ from dagster import AssetExecutionContext, OpExecutionContext, asset, materialize from dagster._core.execution.context.compute import _get_deprecation_kwargs + def test_doc_strings(): ignores = [ "_abc_impl",