Skip to content

Commit ed8b2fe

Browse files
committed
BQ: remove redundant __eq__ from Query Parameters. (#4055)
Got duplicate definitions after the rebase.
1 parent 83319e1 commit ed8b2fe

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

bigquery/google/cloud/bigquery/_helpers.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -527,14 +527,6 @@ def __init__(self, name, type_, value):
527527
self.type_ = type_
528528
self.value = value
529529

530-
def __eq__(self, other):
531-
if not isinstance(other, ScalarQueryParameter):
532-
return NotImplemented
533-
return(
534-
self.name == other.name and
535-
self.type_ == other.type_ and
536-
self.value == other.value)
537-
538530
@classmethod
539531
def positional(cls, type_, value):
540532
"""Factory for positional paramater.
@@ -637,14 +629,6 @@ def __init__(self, name, array_type, values):
637629
self.array_type = array_type
638630
self.values = values
639631

640-
def __eq__(self, other):
641-
if not isinstance(other, ArrayQueryParameter):
642-
return NotImplemented
643-
return(
644-
self.name == other.name and
645-
self.array_type == other.array_type and
646-
self.values == other.values)
647-
648632
@classmethod
649633
def positional(cls, array_type, values):
650634
"""Factory for positional parameters.
@@ -789,14 +773,6 @@ def __init__(self, name, *sub_params):
789773
types[sub.name] = sub.type_
790774
values[sub.name] = sub.value
791775

792-
def __eq__(self, other):
793-
if not isinstance(other, StructQueryParameter):
794-
return NotImplemented
795-
return(
796-
self.name == other.name and
797-
self.struct_types == other.struct_types and
798-
self.struct_values == other.struct_values)
799-
800776
@classmethod
801777
def positional(cls, *sub_params):
802778
"""Factory for positional parameters.

0 commit comments

Comments
 (0)