summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2022-04-28 07:07:32 -0700
committerDavid Lord <davidism@gmail.com>2022-04-28 07:07:32 -0700
commita24df26d54fa2ccbe9bdaa0bb9419075a00e2699 (patch)
tree398f90d835c96cde45642686be51b4631bf50c52
parent9faee281ea75694e28c33e2878879b322359d411 (diff)
downloadjinja2-a24df26d54fa2ccbe9bdaa0bb9419075a00e2699.tar.gz
ignore new mypy finding
-rw-r--r--src/jinja2/filters.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jinja2/filters.py b/src/jinja2/filters.py
index 7e09709..ed07c4c 100644
--- a/src/jinja2/filters.py
+++ b/src/jinja2/filters.py
@@ -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