flyte icon indicating copy to clipboard operation
flyte copied to clipboard

[Core feature] Possibility to check for `None` values

Open MartinTschechne opened this issue 2 years ago • 4 comments

Motivation: Why do you think this is important?

Additionally to is_true() and is_false() it would be nice to have a functionality to check whether None is returned by a task. This could be useful in conditionals for example.

Goal: What should the final outcome look like, ideally?

The function is_none() should simply return True or False and logically work like

if val is None:
    return True
else:
    return False

Describe alternatives you've considered

Either returning the string 'None' or False and explicitly check for that.

Propose: Link/Inline OR Additional context

No response

Are you sure this issue hasn't been raised already?

  • [X] Yes

Have you read the Code of Conduct?

  • [X] Yes

MartinTschechne avatar Mar 22 '23 09:03 MartinTschechne

Thank you for opening your first issue here! 🛠

welcome[bot] avatar Mar 22 '23 09:03 welcome[bot]

Hi @cosmicBboy, can you assign this issue to me? I am interested in this one.

Thanks.

pohanhuang avatar Jul 17 '23 03:07 pohanhuang

Hey! would like to work on this

ananyapillai72 avatar Oct 01 '23 19:10 ananyapillai72

Hello 👋, this issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will engage on it to decide if it is still applicable. Thank you for your contribution and understanding! 🙏

github-actions[bot] avatar Jun 28 '24 00:06 github-actions[bot]

Implemented in flyteorg/flytekit#1757 ?

dwo avatar Apr 15 '25 15:04 dwo