Skip to content

docs: correct return type in CellDataParser.time_to_py docstring - #17972

Open
fixedbydev wants to merge 1 commit into
googleapis:mainfrom
fixedbydev:docs/fix-time-to-py-docstring
Open

docs: correct return type in CellDataParser.time_to_py docstring#17972
fixedbydev wants to merge 1 commit into
googleapis:mainfrom
fixedbydev:docs/fix-time-to-py-docstring

Conversation

@fixedbydev

Copy link
Copy Markdown

Small docstring fix in google-cloud-bigquery.

CellDataParser.time_to_py returns a datetime.time (via .time()), but its docstring reads "Coerce 'value' to a datetime date", which looks like it was copied from the neighbouring date_to_py. This just corrects "date" to "time" so the docstring matches what the method actually returns.

No behavior change; docstring only.

time_to_py returns a datetime.time, but its docstring was copied from
date_to_py and described the value as a "datetime date".
@fixedbydev
fixedbydev requested review from a team as code owners August 2, 2026 15:57
@fixedbydev
fixedbydev requested review from tswast and removed request for a team August 2, 2026 15:57
@google-cla

google-cla Bot commented Aug 2, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request corrects a typo in the docstring of the time_to_py method in _helpers.py, changing "datetime date" to "datetime time" to accurately reflect the method's purpose. There are no review comments, and I have no additional feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant