We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9faee28 commit a24df26Copy full SHA for a24df26
src/jinja2/filters.py
@@ -1286,13 +1286,13 @@ def sync_do_sum(
1286
Total: {{ items|sum(attribute='price') }}
1287
1288
.. versionchanged:: 2.6
1289
- The `attribute` parameter was added to allow suming up over
1290
- attributes. Also the `start` parameter was moved on to the right.
+ The ``attribute`` parameter was added to allow summing up over
+ attributes. Also the ``start`` parameter was moved on to the right.
1291
"""
1292
if attribute is not None:
1293
iterable = map(make_attrgetter(environment, attribute), iterable)
1294
1295
- return sum(iterable, start)
+ return sum(iterable, start) # type: ignore[no-any-return, call-overload]
1296
1297
1298
@async_variant(sync_do_sum) # type: ignore
0 commit comments