File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ def __eq__(self, other):
348
348
self_list = list (self )
349
349
other_list = list (other )
350
350
# checking equality both directions is necessary for ANY to work
351
- return self_list . __eq__ ( other_list ) or other_list . __eq__ ( self_list )
351
+ return self_list == other_list or other_list == self_list
352
352
353
353
354
354
def _check_and_set_parent (parent , value , name , new_name ):
@@ -2411,8 +2411,8 @@ def __eq__(self, other):
2411
2411
self_params = self_args , self_kwargs
2412
2412
other_params = other_args , other_kwargs
2413
2413
return (
2414
- self_params . __eq__ ( other_params )
2415
- or other_params . __eq__ ( self_params )
2414
+ self_params == other_params
2415
+ or other_params == self_params
2416
2416
)
2417
2417
2418
2418
You can’t perform that action at this time.
0 commit comments