Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Jul 31, 2024
1 parent 45f2629 commit 575b34f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flytekit/core/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ def transform_function_to_interface(fn: typing.Callable, docstring: Optional[Doc
ctx.execution_state
# Only check if the task/workflow has a return statement at compile time locally.
and ctx.execution_state.mode is None
# inspec module does not work correctly with Python <3.10. https://github.com/flyteorg/flyte/issues/5608
and sys.version_info >= (3, 10)
# inspect module does not work correctly with Python <3.10.10. https://github.com/flyteorg/flyte/issues/5608
and sys.version_info >= (3, 10, 10)
and return_annotation
and type(None) not in get_args(return_annotation)
and return_annotation is not type(None)
Expand Down

0 comments on commit 575b34f

Please sign in to comment.