@@ -246,21 +246,27 @@ def __repr__(self):
246246
247247 def __or__ (self , other ):
248248 if not isinstance (other , Value ):
249- raise Exception (f"Operator | is not supported between type { type (other )} "
250- f"and type ValueWithPlan" )
251-
252- return ValueWithPlan (self .get_value () | other .get_value (),
253- f"{ self .get_plan_representation ()} | "
254- f"{ other .get_plan_representation ()} " )
249+ raise Exception (
250+ f"Operator | is not supported between type { type (other )} "
251+ f"and type ValueWithPlan"
252+ )
253+
254+ return ValueWithPlan (
255+ self .get_value () | other .get_value (),
256+ f"{ self .get_plan_representation ()} | " f"{ other .get_plan_representation ()} " ,
257+ )
255258
256259 def __and__ (self , other ):
257260 if not isinstance (other , Value ):
258- raise Exception (f"Operator && is not supported between type { type (other )} "
259- f"and type ValueWithPlan" )
260-
261- ValueWithPlan (self .get_value () & other .get_value (),
262- f"{ self .get_plan_representation ()} & "
263- f"{ other .get_plan_representation ()} " )
261+ raise Exception (
262+ f"Operator && is not supported between type { type (other )} "
263+ f"and type ValueWithPlan"
264+ )
265+
266+ ValueWithPlan (
267+ self .get_value () & other .get_value (),
268+ f"{ self .get_plan_representation ()} & " f"{ other .get_plan_representation ()} " ,
269+ )
264270
265271 def get_plan_representation (self ) -> str :
266272 return self .execution_plan
0 commit comments