Skip to content

fix: pipeline none values#649

Merged
ji-yaqi merged 2 commits into
googleapis:masterfrom
ji-yaqi:fix_none
Aug 24, 2021
Merged

fix: pipeline none values#649
ji-yaqi merged 2 commits into
googleapis:masterfrom
ji-yaqi:fix_none

Conversation

@ji-yaqi
Copy link
Copy Markdown
Contributor

@ji-yaqi ji-yaqi commented Aug 20, 2021

No description provided.

@ji-yaqi ji-yaqi requested a review from a team August 20, 2021 23:18
@product-auto-label product-auto-label Bot added the api: aiplatform Issues related to the AI Platform API. label Aug 20, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 20, 2021
inputs, or value is none.
"""
if not value:
if value == None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always use if foo is None: (or is not None) to check for a None value.

https://google.github.io/styleguide/pyguide.html#2144-decision

Also see: https://stackoverflow.com/a/26611

@ji-yaqi ji-yaqi requested a review from vinnysenthil August 23, 2021 21:36
@ji-yaqi ji-yaqi merged commit 2f89343 into googleapis:master Aug 24, 2021
@ji-yaqi ji-yaqi deleted the fix_none branch August 24, 2021 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: aiplatform Issues related to the AI Platform API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants