Skip to content

Commit

Permalink
try some parent class stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Sep 22, 2023
1 parent 2121976 commit ab3472a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@

if TYPE_CHECKING:
from ..execution.context.invocation import (
BoundAssetExecutionContext,
BoundExecutionContext,
BoundOpExecutionContext,
)
from .assets import AssetsDefinition
from .composition import PendingNodeInvocation
Expand Down Expand Up @@ -447,7 +445,7 @@ def type_check_gen(gen):
def _type_check_function_output(
op_def: "OpDefinition",
result: T,
context: Union["BoundOpExecutionContext", "BoundAssetExecutionContext"],
context: "BoundExecutionContext",
) -> T:
from ..execution.plan.compute_generator import validate_and_coerce_op_result_to_iterator

Expand All @@ -460,7 +458,7 @@ def _type_check_function_output(
def _type_check_output(
output_def: "OutputDefinition",
output: T,
context: Union["BoundOpExecutionContext", "BoundAssetExecutionContext"],
context: "BoundExecutionContext",
) -> T:
"""Validates and performs core type check on a provided output.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _property_msg(prop_name: str, method_name: str) -> str:
)


class BoundExecutionContext(ABC):
class BoundExecutionContext(OpExecutionContext):
@property
@abstractmethod
def alias(self) -> str:
Expand Down Expand Up @@ -428,7 +428,7 @@ def _validate_resource_requirements(
ensure_requirements_satisfied(resource_defs, [requirement])


class BoundOpExecutionContext(OpExecutionContext, BoundExecutionContext):
class BoundOpExecutionContext(BoundExecutionContext):
"""The op execution context that is passed to the compute function during invocation.
This context is bound to a specific op definition, for which the resources and config have
Expand Down

0 comments on commit ab3472a

Please sign in to comment.