]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
ignore new mypy finding
authorDavid Lord <davidism@gmail.com>
Thu, 28 Apr 2022 14:07:32 +0000 (07:07 -0700)
committerDavid Lord <davidism@gmail.com>
Thu, 28 Apr 2022 14:07:32 +0000 (07:07 -0700)
src/jinja2/filters.py

index 7e0970988c3bb17bc2775d5fec04513196d39e33..ed07c4c0e2ae1b6203b3468cda8a303ecf3d7832 100644 (file)
@@ -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