Skip to content

Commit

Permalink
Fix IO manager doc snippets (#12545)
Browse files Browse the repository at this point in the history
Reported by a user here:
https://dagster.slack.com/archives/C01U5LFUZJS/p1677232099131829

Our IO manager code snippets have some syntax errors. This PR fixes
these errors.
  • Loading branch information
clairelin135 committed Feb 27, 2023
1 parent e867fcc commit 704c638
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Expand Up @@ -60,7 +60,7 @@ def asset1():
@asset
def asset2(asset1):
return df[:5]
return asset1[:5]
@repository
def repo():
Expand All @@ -70,7 +70,6 @@ def repo():
"io_manager": fs_io_manager.configured({"base_dir": "/my/base/path"})
},
)
)
2. Specify a job-level IO manager using the reserved resource key ``"io_manager"``,
Expand Down
Expand Up @@ -140,7 +140,7 @@ def asset1():
@asset
def asset2(asset1):
return df[:5]
return asset1[:5]
@repository
def repo():
Expand All @@ -153,7 +153,6 @@ def repo():
"s3": s3_resource,
},
)
)
2. Attach this IO manager to your job to make it available to your ops.
Expand Down
Expand Up @@ -133,7 +133,7 @@ def asset1():
@asset
def asset2(asset1):
return df[:5]
return asset1[:5]
@repository
def repo():
Expand All @@ -146,7 +146,6 @@ def repo():
"gcs": gcs_resource,
},
)
)
2. Attach this IO manager to your job to make it available to your ops.
Expand Down

0 comments on commit 704c638

Please sign in to comment.