Skip to content

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

4 participants