diff --git a/docs/content/concepts/assets/graph-backed-assets.mdx b/docs/content/concepts/assets/graph-backed-assets.mdx index d0a4d4d6bd51a..a3759648a8b3c 100644 --- a/docs/content/concepts/assets/graph-backed-assets.mdx +++ b/docs/content/concepts/assets/graph-backed-assets.mdx @@ -32,7 +32,7 @@ from dagster_slack import SlackResource @op -def fetch_files_from_slack(context, slack: SlackResource) -> pd.DataFrame: +def fetch_files_from_slack(slack: SlackResource) -> pd.DataFrame: files = slack.get_client().files_list(channel="#random") return pd.DataFrame( [ @@ -131,7 +131,7 @@ During execution, if we select just `baz_asset` for materialization, the below i ```python file=/concepts/assets/subset_graph_backed_asset.py startafter=start_graph_backed_asset_foo endbefore=end_graph_backed_asset_foo @op(out={"foo_1": Out(is_required=False), "foo_2": Out(is_required=False)}) -def foo(context, bar_1): +def foo(context: OpExecutionContext, bar_1): # Selectively returns outputs based on selected assets if "foo_1" in context.selected_output_names: yield Output(bar_1 + 1, output_name="foo_1")