Skip to content

Commit a24df26

Browse files
committed
ignore new mypy finding
1 parent 9faee28 commit a24df26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jinja2/filters.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1286,13 +1286,13 @@ def sync_do_sum(
12861286
Total: {{ items|sum(attribute='price') }}
12871287
12881288
.. 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.
1289+
The ``attribute`` parameter was added to allow summing up over
1290+
attributes. Also the ``start`` parameter was moved on to the right.
12911291
"""
12921292
if attribute is not None:
12931293
iterable = map(make_attrgetter(environment, attribute), iterable)
12941294

1295-
return sum(iterable, start)
1295+
return sum(iterable, start) # type: ignore[no-any-return, call-overload]
12961296

12971297

12981298
@async_variant(sync_do_sum) # type: ignore

0 commit comments

Comments
 (0)