docs: correct crossreference in docs

This commit is contained in:
2023-11-05 04:32:05 +02:00
parent 6b755b4828
commit dc2eebce39
41 changed files with 244 additions and 137 deletions

View File

@@ -189,7 +189,7 @@ class BaseView(View, CorsViewMixin):
"""
get_method: Callable[..., Awaitable[StreamResponse]] | None = getattr(self, "get", None)
# using if/else in order to suppress mypy warning which doesn't know that
# ``_raise_allowed_methods`` raises exception
# :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()