Skip to content

Commit

Permalink
docs: update the description of the return value of `_QueryResults.ro…
Browse files Browse the repository at this point in the history
…ws()` (#594)

Updated the description of the return value of `rows` to be more accurate.
  • Loading branch information
kdeggelman committed Apr 8, 2021
1 parent be49612 commit 8f4c0b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/cloud/bigquery/query.py
Expand Up @@ -815,7 +815,7 @@ def total_rows(self):
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#body.QueryResponse.FIELDS.total_rows
Returns:
Optional[int}: Count generated on the server (None until set by the server).
Optional[int]: Count generated on the server (None until set by the server).
"""
total_rows = self._properties.get("totalRows")
if total_rows is not None:
Expand Down Expand Up @@ -858,7 +858,7 @@ def rows(self):
Returns:
Optional[List[google.cloud.bigquery.table.Row]]:
Fields describing the schema (None until set by the server).
Rows containing the results of the query.
"""
return _rows_from_json(self._properties.get("rows", ()), self.schema)

Expand Down

0 comments on commit 8f4c0b8

Please sign in to comment.