From 5d495fc813f57b46d5f04a2111f5f5f164679e70 Mon Sep 17 00:00:00 2001 From: Evgenii Alekseev Date: Wed, 25 Sep 2024 07:15:32 +0300 Subject: [PATCH] type: remove unused ignore comment --- src/ahriman/web/views/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ahriman/web/views/base.py b/src/ahriman/web/views/base.py index fe7f7b4c..4814efd7 100644 --- a/src/ahriman/web/views/base.py +++ b/src/ahriman/web/views/base.py @@ -174,9 +174,8 @@ class BaseView(View, CorsViewMixin): # using if/else in order to suppress mypy warning which doesn't know that # :func:`aiohttp.web.View._raise_allowed_methods()` raises exception if get_method is not None: - # there is a bug in pylint, see https://github.com/pylint-dev/pylint/issues/6005 response = await get_method() - response._body = b"" # type: ignore[assignment] + response._body = b"" return response self._raise_allowed_methods()