We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3deff1d commit 68df1ddCopy full SHA for 68df1dd
google/cloud/bigquery/table.py
@@ -3547,8 +3547,9 @@ def __eq__(self, other):
3547
if not isinstance(other, TableConstraints) and other is not None:
3548
raise TypeError("The value provided is not a BigQuery TableConstraints.")
3549
return (
3550
- self.primary_key == other.primary_key if other.primary_key else None
3551
- ) and (self.foreign_keys == other.foreign_keys if other.foreign_keys else None)
+ self.primary_key == (other.primary_key if other.primary_key else None)
+ and self.foreign_keys == (other.foreign_keys if other.foreign_keys else None)
3552
+ )
3553
3554
@classmethod
3555
def from_api_repr(cls, resource: Dict[str, Any]) -> "TableConstraints":
0 commit comments