Skip to content

Commit

Permalink
fix type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Sep 20, 2023
1 parent 160c957 commit 5a064ff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
Map,
Noneable,
Nothing,
OpExecutionContext,
Out,
Output,
PythonObjectDagsterType,
Expand Down Expand Up @@ -733,7 +734,7 @@ def spawn() -> int:
@op(
required_resource_keys={"retry_count"},
)
def fail(context: AssetExecutionContext, depth: int) -> int:
def fail(context: OpExecutionContext, depth: int) -> int:
if context.resources.retry_count <= depth:
raise Exception("fail")

Expand Down

0 comments on commit 5a064ff

Please sign in to comment.