GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — feat: add type hints to Client by rinarakaki · Pull Request #2044 · googleapis/python-bigquery
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Conversation
Contributor
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use -- conventional-commit-lint bot |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if client_options is None: | ||
| client_options = {} | ||
| if isinstance(client_options, dict): | ||
| client_options = google.api_core.client_options.from_dict(client_options) | ||
| assert isinstance(client_options, google.api_core.client_options.ClientOptions) | ||
|
|
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I am curious, why did we choose to:
super() to before the call to super()? What is the reason for reordering this content?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
super() is optional, but I did it because actually the exact same type check & coercion happens inside the super() (Client.__init__) as well, so I let it early break in the second time.client_options, otherwise it wouldn't know that the if client_options.api_endpoint: expression at the line 261 is valid .
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@rinarakaki I ran the kokoro CI/CD checks. mypy errors:unit test errors: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Moves import from being used solely during specific checks to being more universally available.
There was an error while loading. Please reload this page.
testing some minor changes to deal with mypy quirks
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for providing this update to the code. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* add type hints * Update client.py Moves import from being used solely during specific checks to being more universally available. * Update google/cloud/bigquery/client.py * Update client.py testing some minor changes to deal with mypy quirks * Update google/cloud/bigquery/client.py --------- Co-authored-by: Chalmer Lowe <[email protected]>
* add type hints * Update client.py Moves import from being used solely during specific checks to being more universally available. * Update google/cloud/bigquery/client.py * Update client.py testing some minor changes to deal with mypy quirks * Update google/cloud/bigquery/client.py --------- Co-authored-by: Chalmer Lowe <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.