@@ -196,8 +196,8 @@ def _load_stream_without_unbatching(self, stream):
196
196
return self .serializer .load_stream (stream )
197
197
198
198
def __eq__ (self , other ):
199
- return isinstance (other , BatchedSerializer ) and
200
- other .serializer == self .serializer
199
+ return ( isinstance (other , BatchedSerializer ) and
200
+ other .serializer == self .serializer )
201
201
202
202
def __str__ (self ):
203
203
return "BatchedSerializer<%s>" % str (self .serializer )
@@ -228,8 +228,8 @@ def load_stream(self, stream):
228
228
yield pair
229
229
230
230
def __eq__ (self , other ):
231
- return isinstance (other , CartesianDeserializer ) and
232
- self .key_ser == other .key_ser and self .val_ser == other .val_ser
231
+ return ( isinstance (other , CartesianDeserializer ) and
232
+ self .key_ser == other .key_ser and self .val_ser == other .val_ser )
233
233
234
234
def __str__ (self ):
235
235
return "CartesianDeserializer<%s, %s>" % \
@@ -251,8 +251,8 @@ def load_stream(self, stream):
251
251
yield pair
252
252
253
253
def __eq__ (self , other ):
254
- return isinstance (other , PairDeserializer ) and
255
- self .key_ser == other .key_ser and self .val_ser == other .val_ser
254
+ return ( isinstance (other , PairDeserializer ) and
255
+ self .key_ser == other .key_ser and self .val_ser == other .val_ser )
256
256
257
257
def __str__ (self ):
258
258
return "PairDeserializer<%s, %s>" % (str (self .key_ser ), str (self .val_ser ))
0 commit comments