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: adds the SerDeInfo class and tests by chalmerlowe · Pull Request #2108 · googleapis/python-bigquery
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Conversation
Linchin
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 to transforming to PEP-8 compliant
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolved.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
tswast
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Overall approach looks great. A couple nits.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: Use
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is great feedback. I had not realized that.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolved.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Comment on lines
+566
to
+567
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might need a blank line here for the docs renderer to work?
Suggested change
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolved.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 to transforming to PEP-8 compliant
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Comment on lines
+23
to
+26
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same nit here, regarding https://google.github.io/styleguide/pyguide.html#22-imports
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
| return answer | ||
|
|
||
|
|
||
| class SerDeInfo: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is this the name in the REST API? I'd prefer the full names rather than abbreviations, but I'm OK with this if it's to be consistent with the proto/REST API.
Sorry, something went wrong.
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.
SerDeInfo is the name in the proto/REST API definitions.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| @property | ||
| def serialization_library(self) -> Any: | ||
| """Required. Specifies a fully-qualified class name of the serialization |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
nit: I think Required. should only apply to the init.
Sorry, something went wrong.
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.
As mentioned in chat, I prefer to leave this as is.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| @property | ||
| def name(self) -> Any: | ||
| """Optional. Name of the SerDe. The maximum length is 256 characters.""" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
nit: similarly, we can remove Optional. here.
Sorry, something went wrong.
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.
As mentioned in chat, I prefer to leave this as is.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| self._properties["serializationLibrary"] = value | ||
|
|
||
| @property | ||
| def name(self) -> Any: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| def name(self) -> Any: | |
| def name(self) -> Optional[str]: |
Sorry, something went wrong.
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.
Resolved.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| self.parameters = parameters | ||
|
|
||
| @property | ||
| def serialization_library(self) -> Any: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| def serialization_library(self) -> Any: | |
| def serialization_library(self) -> str: |
Sorry, something went wrong.
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.
Resolved.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| self._properties["name"] = value | ||
|
|
||
| @property | ||
| def parameters(self) -> Any: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| def parameters(self) -> Any: | |
| def parameters(self) -> Optional[dict[str, str]]: |
For consistent type annotations.
Sorry, something went wrong.
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.
Resolved.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| return self._properties.get("parameters") | ||
|
|
||
| @parameters.setter | ||
| def parameters(self, value: Optional[dict[str, str]] = None): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
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.
See reply above from Python Docs about the concept of optional versus typing.Optional.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* feat: adds SerDeInfo class and tests * cleans up type hints and some minor tweaks
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.