mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +00:00
type: remove unused ignore comment
This commit is contained in:
parent
634054926d
commit
180adf3f33
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user