Skip to content

Commit

Permalink
add bool fn
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Nov 30, 2023
1 parent 4341d02 commit cfdfd63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ def op_def(self) -> "OpDefinition":

return cast(OpDefinition, self._op_def)

@public
@property
def has_dagster_type(self) -> bool:
return self._dagster_type is not None

@public
@property
def dagster_type(self) -> "DagsterType":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ def _load_input_with_input_manager(

if (
context.upstream_output
and context.upstream_output.dagster_type
and context.upstream_output.has_dagster_type
and context.upstream_output.dagster_type.is_nothing
):
yield None
Expand Down

0 comments on commit cfdfd63

Please sign in to comment.