Skip to content

Commit

Permalink
ignore new mypy finding
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Apr 28, 2022
1 parent 9faee28 commit a24df26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jinja2/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1286,13 +1286,13 @@ def sync_do_sum(
Total: {{ items|sum(attribute='price') }}
.. versionchanged:: 2.6
The `attribute` parameter was added to allow suming up over
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.
"""
if attribute is not None:
iterable = map(make_attrgetter(environment, attribute), iterable)

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


@async_variant(sync_do_sum) # type: ignore
Expand Down

0 comments on commit a24df26

Please sign in to comment.