@@ -1228,7 +1228,7 @@ def visit_less_than(self, term: BoundTerm[L], literal: Literal[L]) -> bool:
12281228 # NaN indicates unreliable bounds. See the InclusiveMetricsEvaluator docs for more.
12291229 return ROWS_MIGHT_MATCH
12301230
1231- if lower_bound >= literal .value :
1231+ if lower_bound >= literal .value : # type: ignore[operator]
12321232 return ROWS_CANNOT_MATCH
12331233
12341234 return ROWS_MIGHT_MATCH
@@ -1249,7 +1249,7 @@ def visit_less_than_or_equal(self, term: BoundTerm[L], literal: Literal[L]) -> b
12491249 # NaN indicates unreliable bounds. See the InclusiveMetricsEvaluator docs for more.
12501250 return ROWS_MIGHT_MATCH
12511251
1252- if lower_bound > literal .value :
1252+ if lower_bound > literal .value : # type: ignore[operator]
12531253 return ROWS_CANNOT_MATCH
12541254
12551255 return ROWS_MIGHT_MATCH
@@ -1266,7 +1266,7 @@ def visit_greater_than(self, term: BoundTerm[L], literal: Literal[L]) -> bool:
12661266
12671267 if upper_bound_bytes := self .upper_bounds .get (field_id ):
12681268 upper_bound = from_bytes (field .field_type , upper_bound_bytes )
1269- if upper_bound <= literal .value :
1269+ if upper_bound <= literal .value : # type: ignore[operator]
12701270 if self ._is_nan (upper_bound ):
12711271 # NaN indicates unreliable bounds. See the InclusiveMetricsEvaluator docs for more.
12721272 return ROWS_MIGHT_MATCH
@@ -1287,7 +1287,7 @@ def visit_greater_than_or_equal(self, term: BoundTerm[L], literal: Literal[L]) -
12871287
12881288 if upper_bound_bytes := self .upper_bounds .get (field_id ):
12891289 upper_bound = from_bytes (field .field_type , upper_bound_bytes )
1290- if upper_bound < literal .value :
1290+ if upper_bound < literal .value : # type: ignore[operator]
12911291 if self ._is_nan (upper_bound ):
12921292 # NaN indicates unreliable bounds. See the InclusiveMetricsEvaluator docs for more.
12931293 return ROWS_MIGHT_MATCH
@@ -1312,7 +1312,7 @@ def visit_equal(self, term: BoundTerm[L], literal: Literal[L]) -> bool:
13121312 # NaN indicates unreliable bounds. See the InclusiveMetricsEvaluator docs for more.
13131313 return ROWS_MIGHT_MATCH
13141314
1315- if lower_bound > literal .value :
1315+ if lower_bound > literal .value : # type: ignore[operator]
13161316 return ROWS_CANNOT_MATCH
13171317
13181318 if upper_bound_bytes := self .upper_bounds .get (field_id ):
@@ -1321,7 +1321,7 @@ def visit_equal(self, term: BoundTerm[L], literal: Literal[L]) -> bool:
13211321 # NaN indicates unreliable bounds. See the InclusiveMetricsEvaluator docs for more.
13221322 return ROWS_MIGHT_MATCH
13231323
1324- if upper_bound < literal .value :
1324+ if upper_bound < literal .value : # type: ignore[operator]
13251325 return ROWS_CANNOT_MATCH
13261326
13271327 return ROWS_MIGHT_MATCH
@@ -1349,7 +1349,7 @@ def visit_in(self, term: BoundTerm[L], literals: Set[L]) -> bool:
13491349 # NaN indicates unreliable bounds. See the InclusiveMetricsEvaluator docs for more.
13501350 return ROWS_MIGHT_MATCH
13511351
1352- literals = {lit for lit in literals if lower_bound <= lit }
1352+ literals = {lit for lit in literals if lower_bound <= lit } # type: ignore[operator]
13531353 if len (literals ) == 0 :
13541354 return ROWS_CANNOT_MATCH
13551355
@@ -1359,7 +1359,7 @@ def visit_in(self, term: BoundTerm[L], literals: Set[L]) -> bool:
13591359 if self ._is_nan (upper_bound ):
13601360 return ROWS_MIGHT_MATCH
13611361
1362- literals = {lit for lit in literals if upper_bound >= lit }
1362+ literals = {lit for lit in literals if upper_bound >= lit } # type: ignore[operator]
13631363 if len (literals ) == 0 :
13641364 return ROWS_CANNOT_MATCH
13651365
0 commit comments