Skip to content

Commit e768cdd

Browse files
1 parent 1ce4f3a commit e768cdd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎google/cloud/bigquery/schema.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,10 @@ def __init__(
259259
if self._properties.get("foreignTypeDefinition") is None:
260260
raise ValueError(
261261
"If the 'field_type' is 'FOREIGN', then 'foreign_type_definition' is required."
262-
)
262+
)
263263
if fields: # Don't set the property if it's not set.
264264
self._properties["fields"] = [field.to_api_repr() for field in fields]
265265

266-
267266
@classmethod
268267
def from_api_repr(cls, api_repr: dict) -> "SchemaField":
269268
"""Return a ``SchemaField`` object deserialized from a dictionary.

0 commit comments

Comments
 (0)