Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pipeline none values #649

Merged
merged 2 commits into from Aug 24, 2021
Merged

fix: pipeline none values #649

merged 2 commits into from Aug 24, 2021

Conversation

ji-yaqi
Copy link
Contributor

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

No description provided.

@ji-yaqi ji-yaqi requested a review from a team as a code owner 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
@@ -129,7 +129,7 @@ def _get_vertex_value(
ValueError: if the parameter name is not found in pipeline root
inputs, or value is none.
"""
if not value:
if value == None:
Copy link
Member

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 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.

None yet

4 participants