Skip to content

Commit

Permalink
add context interface to asset context
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Sep 21, 2023
1 parent f20e4b2 commit 9258a58
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
cast,
)

from dagster_ext import IContext

import dagster._check as check
from dagster._annotations import deprecated, experimental, public
from dagster._core.definitions.asset_check_spec import AssetCheckSpec
Expand Down Expand Up @@ -1342,7 +1344,7 @@ def _get_deprecation_kwargs(attr: str):
return deprecation_kwargs


class AssetExecutionContext(OpExecutionContext):
class AssetExecutionContext(OpExecutionContext, IContext):
def __init__(self, op_execution_context: OpExecutionContext) -> None:
self._op_execution_context = check.inst_param(
op_execution_context, "op_execution_context", OpExecutionContext
Expand Down

0 comments on commit 9258a58

Please sign in to comment.