Skip to content

Commit

Permalink
Add type hint for base_tas.py compile method (#1789)
Browse files Browse the repository at this point in the history
Signed-off-by: Future Outlier <[email protected]>
Co-authored-by: Future Outlier <[email protected]>
  • Loading branch information
Future-Outlier and Future Outlier authored Aug 12, 2023
1 parent 2a7c9cb commit 1a9af18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flytekit/core/base_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def construct_node_metadata(self) -> _workflow_model.NodeMetadata:
interruptible=self.metadata.interruptible,
)

def compile(self, ctx: FlyteContext, *args, **kwargs):
def compile(self, ctx: FlyteContext, *args, **kwargs) -> Optional[Union[Tuple[Promise], Promise, VoidPromise]]:
"""
Generates a node that encapsulates this task in a workflow definition.
"""
Expand Down

0 comments on commit 1a9af18

Please sign in to comment.