Skip to content

Commit 5d2fbf0

Browse files
committed
fix system test
1 parent 7693537 commit 5d2fbf0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google/cloud/bigquery/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ class SourceColumnMatch(str, enum.Enum):
482482
columns to match the field names in the schema."""
483483

484484

485-
class TimestampPrecision(enum.Enum):
485+
class TimestampPrecision(object):
486486
"""Precision (maximum number of total digits in base 10) for seconds of
487487
TIMESTAMP type."""
488488

google/cloud/bigquery/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def timestamp_precision(self):
390390
"""Union[enums.TimestampPrecision, int, None]: Precision (maximum number
391391
of total digits in base 10) for seconds of TIMESTAMP type.
392392
"""
393-
return self._properties.get("timestampPrecision")
393+
return _helpers._int_or_none(self._properties.get("timestampPrecision"))
394394

395395
def to_api_repr(self) -> dict:
396396
"""Return a dictionary representing this schema field.

0 commit comments

Comments
 (0)