Uh oh!
There was an error while loading. Please reload this page.
Port gax helper methods - #4249
Conversation
theacodes
left a comment
There was a problem hiding this comment.
Looks mostly good, a few tiny nits. Thank you for doing this.
| """Raise ValueError if more than one keyword argument is not none. | ||
| Args: | ||
| kwargs (dict): The keyword arguments sent to the function. | ||
| Returns: None |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| """ | ||
| # Sanity check: If no keyword arguments were sent, this is fine. | ||
| if not kwargs: | ||
| return None |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| assert protobuf_helpers.check_oneof(foo='bar') is None | ||
| assert protobuf_helpers.check_oneof(foo='bar', baz=None) is None | ||
| assert protobuf_helpers.check_oneof(foo=None, baz='bacon') is None | ||
| assert (protobuf_helpers.check_oneof(foo='bar', spam=None, eggs=None) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
theacodes
commented
Oct 24, 2017
There's an unrelated lint error blocking this, I sent #4250 to fix. Can you verify that |
landrito
commented
Oct 24, 2017
That command ran successfully. |
No description provided.