Skip to content
Myr

ignore new mypy finding

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 9faee28 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:src/jinja2/filters.py+3 added-3 removed
1284 unmodified lines
12851286 Total: {{ items|sum(attribute='price') }}12871288 .. versionchanged:: 2.61289 The `attribute` parameter was added to allow suming up over1290 attributes. Also the `start` parameter was moved on to the right.1289 The ``attribute`` parameter was added to allow summing up over1290 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)12941295 return sum(iterable, start)1295 return sum(iterable, start) # type: ignore[no-any-return, call-overload]129612971298@async_variant(sync_do_sum) # type: ignore1299async def do_sum(
541 unmodified lines