-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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(automl): fix TypeError when passing a client_info to automl TablesClient #9949
Conversation
Cc'ing @helinwang as I was told you are the new maintainer of the library. |
@@ -104,17 +104,18 @@ def __init__( | |||
else: | |||
client_info_.user_agent = user_agent | |||
client_info_.gapic_version = version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
I think it's good to encourage being explicit with the argument. E.g., prefer explicit argument than using kwargs.
Instead of removing the client_info
argument, could you change the solution to removing "client_info" from kwargs after this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks!
The check is failing on Commit message did not follow Conventional Commits, could you make change to the commit message according to the rule as well? Thanks! |
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Fix the formatting that failed the test. (running blacken with python version 3.6 failed with |
@busunkim96 Is it possible to rerun the presubmits? Thanks! |
@vimota Done!. @helinwang please merge when you are ready to. |
Thanks all! |
…sClient (#9949) * fix(automl): fix TypeError when passing a client_info to automl TablesClient The solution is to delete client_info from kwargs instead and pass named parameter.
Ensures the ClientInfo object isn't passed in twice to the underlying clients (AutoMLClient and PredictionServiceClient) from the Table Client.
Fixes #9948 🦕