Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Oct 18, 2023
1 parent 479a745 commit 676eb12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/concepts/assets/graph-backed-assets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 676eb12

Please sign in to comment.