Skip to content

Commit

Permalink
DI context
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Jan 16, 2024
1 parent e68b4af commit 24176a1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from dagster._core.definitions.events import (
AssetMaterialization,
AssetObservation,
CoercibleToAssetKey,
ExpectationResult,
UserEvent,
)
Expand Down Expand Up @@ -800,6 +801,13 @@ def for_type(self, dagster_type: DagsterType) -> TypeCheckContext:
def observe_output(self, output_name: str, mapping_key: Optional[str] = None) -> None:
self.op_execution_context.observe_output(output_name=output_name, mapping_key=mapping_key)

def latest_materialization_for_upstream_asset(
self, key: CoercibleToAssetKey
) -> Optional[AssetMaterialization]:
raise DagsterInvalidPropertyError(
_property_msg("latest_materialization_for_upstream_asset", "method")
)


def _validate_resource_requirements(
resource_defs: Mapping[str, ResourceDefinition], op_def: OpDefinition
Expand Down

0 comments on commit 24176a1

Please sign in to comment.