From: David Lord Date: Thu, 28 Apr 2022 14:07:32 +0000 (-0700) Subject: ignore new mypy finding X-Git-Tag: 3.1.2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a24df26d54fa2ccbe9bdaa0bb9419075a00e2699;p=thirdparty%2Fjinja.git ignore new mypy finding --- diff --git a/src/jinja2/filters.py b/src/jinja2/filters.py index 7e097098..ed07c4c0 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