Skip to content

Commit fcb9fa2

Browse files
authored
Merge pull request #2580 from tswast/int-not-integer
Replaces integer with int in types and rtypes.
2 parents 7538af9 + ca9fa1a commit fcb9fa2

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

google/cloud/bigquery/dataset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def self_link(self):
207207
def default_table_expiration_ms(self):
208208
"""Default expiration time for tables in the dataset.
209209
210-
:rtype: integer, or ``NoneType``
210+
:rtype: int, or ``NoneType``
211211
:returns: The time in milliseconds, or None (the default).
212212
"""
213213
return self._properties.get('defaultTableExpirationMs')
@@ -216,7 +216,7 @@ def default_table_expiration_ms(self):
216216
def default_table_expiration_ms(self, value):
217217
"""Update default expiration time for tables in the dataset.
218218
219-
:type value: integer, or ``NoneType``
219+
:type value: int, or ``NoneType``
220220
:param value: new default time, in milliseconds
221221
222222
:raises: ValueError for invalid value types.

google/cloud/bigquery/job.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def schema(self, value):
455455
def input_file_bytes(self):
456456
"""Count of bytes loaded from source files.
457457
458-
:rtype: integer, or ``NoneType``
458+
:rtype: int, or ``NoneType``
459459
:returns: the count (None until set from the server).
460460
"""
461461
statistics = self._properties.get('statistics')
@@ -466,7 +466,7 @@ def input_file_bytes(self):
466466
def input_files(self):
467467
"""Count of source files.
468468
469-
:rtype: integer, or ``NoneType``
469+
:rtype: int, or ``NoneType``
470470
:returns: the count (None until set from the server).
471471
"""
472472
statistics = self._properties.get('statistics')
@@ -477,7 +477,7 @@ def input_files(self):
477477
def output_bytes(self):
478478
"""Count of bytes saved to destination table.
479479
480-
:rtype: integer, or ``NoneType``
480+
:rtype: int, or ``NoneType``
481481
:returns: the count (None until set from the server).
482482
"""
483483
statistics = self._properties.get('statistics')
@@ -488,7 +488,7 @@ def output_bytes(self):
488488
def output_rows(self):
489489
"""Count of rows saved to destination table.
490490
491-
:rtype: integer, or ``NoneType``
491+
:rtype: int, or ``NoneType``
492492
:returns: the count (None until set from the server).
493493
"""
494494
statistics = self._properties.get('statistics')

google/cloud/bigquery/query.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def total_rows(self):
197197
See:
198198
https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#totalRows
199199
200-
:rtype: integer, or ``NoneType``
200+
:rtype: int, or ``NoneType``
201201
:returns: Count generated on the server (None until set by the server).
202202
"""
203203
return self._properties.get('totalRows')
@@ -209,7 +209,7 @@ def total_bytes_processed(self):
209209
See:
210210
https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#totalBytesProcessed
211211
212-
:rtype: integer, or ``NoneType``
212+
:rtype: int, or ``NoneType``
213213
:returns: Count generated on the server (None until set by the server).
214214
"""
215215
return self._properties.get('totalBytesProcessed')
@@ -345,16 +345,16 @@ def fetch_data(self, max_results=None, page_token=None, start_index=None,
345345
See:
346346
https://cloud.google.com/bigquery/docs/reference/v2/jobs/getQueryResults
347347
348-
:type max_results: integer or ``NoneType``
348+
:type max_results: int or ``NoneType``
349349
:param max_results: maximum number of rows to return.
350350
351351
:type page_token: str or ``NoneType``
352352
:param page_token: token representing a cursor into the table's rows.
353353
354-
:type start_index: integer or ``NoneType``
354+
:type start_index: int or ``NoneType``
355355
:param start_index: zero-based index of starting row
356356
357-
:type timeout_ms: integer or ``NoneType``
357+
:type timeout_ms: int or ``NoneType``
358358
:param timeout_ms: timeout, in milliseconds, to wait for query to
359359
complete
360360

google/cloud/bigquery/table.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def modified(self):
151151
def num_bytes(self):
152152
"""The size of the table in bytes.
153153
154-
:rtype: integer, or ``NoneType``
154+
:rtype: int, or ``NoneType``
155155
:returns: the byte count (None until set from the server).
156156
"""
157157
num_bytes_as_str = self._properties.get('numBytes')
@@ -162,7 +162,7 @@ def num_bytes(self):
162162
def num_rows(self):
163163
"""The number of rows in the table.
164164
165-
:rtype: integer, or ``NoneType``
165+
:rtype: int, or ``NoneType``
166166
:returns: the row count (None until set from the server).
167167
"""
168168
num_rows_as_str = self._properties.get('numRows')
@@ -654,7 +654,7 @@ def fetch_data(self, max_results=None, page_token=None, client=None):
654654
incomplete. To ensure that the local copy of the schema is
655655
up-to-date, call the table's ``reload`` method.
656656
657-
:type max_results: integer or ``NoneType``
657+
:type max_results: int or ``NoneType``
658658
:param max_results: maximum number of rows to return.
659659
660660
:type page_token: str or ``NoneType``
@@ -836,7 +836,7 @@ def upload_from_file(self,
836836
:func:`os.fstat`. (If the file handle is not from the
837837
filesystem this won't be possible.)
838838
839-
:type num_retries: integer
839+
:type num_retries: int
840840
:param num_retries: Number of upload retries. Defaults to 6.
841841
842842
:type allow_jagged_rows: bool
@@ -863,15 +863,15 @@ def upload_from_file(self,
863863
:param ignore_unknown_values: job configuration option; see
864864
:meth:`google.cloud.bigquery.job.LoadJob`.
865865
866-
:type max_bad_records: integer
866+
:type max_bad_records: int
867867
:param max_bad_records: job configuration option; see
868868
:meth:`google.cloud.bigquery.job.LoadJob`.
869869
870870
:type quote_character: str
871871
:param quote_character: job configuration option; see
872872
:meth:`google.cloud.bigquery.job.LoadJob`.
873873
874-
:type skip_leading_rows: integer
874+
:type skip_leading_rows: int
875875
:param skip_leading_rows: job configuration option; see
876876
:meth:`google.cloud.bigquery.job.LoadJob`.
877877

0 commit comments

Comments
 (0)