Skip to content

Commit 0397b5c

Browse files
committed
fixed lint
1 parent c825560 commit 0397b5c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,6 @@ def parent(self) -> "Expression":
10981098
"""
10991099
return FunctionExpression("parent", [self])
11001100

1101-
11021101
@expose_as_static
11031102
def sum(self) -> "Expression":
11041103
"""Creates an aggregation that calculates the sum of a numeric field across multiple stage inputs.

packages/google-cloud-firestore/tests/unit/v1/test_pipeline_expressions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,10 @@ def test_switch_on(self):
942942
instance = Expression.switch_on(arg1, arg2, arg3, arg4, arg5)
943943
assert instance.name == "switch_on"
944944
assert instance.params == [arg1, arg2, arg3, arg4, arg5]
945-
assert repr(instance) == "Condition1.switch_on(Result1, Condition2, Result2, Default)"
945+
assert (
946+
repr(instance)
947+
== "Condition1.switch_on(Result1, Condition2, Result2, Default)"
948+
)
946949
infix_instance = arg1.switch_on(arg2, arg3, arg4, arg5)
947950
assert infix_instance == instance
948951

0 commit comments

Comments
 (0)