Skip to content

Commit 602d20b

Browse files
committed
improved types
1 parent dffb2c2 commit 602d20b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/google-cloud-firestore/google/cloud/firestore_v1/pipeline_expressions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def less_than_or_equal(
611611

612612
@expose_as_static
613613
def between(
614-
self, lower: Expression | CONSTANT_TYPE, upper: Expression | CONSTANT_TYPE
614+
self, lower: Expression | float, upper: Expression | float
615615
) -> "BooleanExpression":
616616
"""Evaluates if the result of this expression is between
617617
the lower bound (inclusive) and upper bound (inclusive).
@@ -636,7 +636,7 @@ def between(
636636
)
637637

638638
@expose_as_static
639-
def geo_distance(self, other: Expression | CONSTANT_TYPE) -> "FunctionExpression":
639+
def geo_distance(self, other: Expression | GeoPoint) -> "FunctionExpression":
640640
"""Evaluates to the distance in meters between the location in the specified
641641
field and the query location.
642642

0 commit comments

Comments
 (0)