extract schemas automatically from views

This commit is contained in:
2023-04-04 13:45:18 +03:00
parent 8f4a2547e8
commit e08ab2db10
15 changed files with 84 additions and 75 deletions

View File

@ -173,7 +173,7 @@ class BaseView(View, CorsViewMixin):
Raises:
HTTPMethodNotAllowed: in case if there is no GET method implemented
"""
get_method: Optional[Callable[[], Awaitable[StreamResponse]]] = getattr(self, "get", None)
get_method: Optional[Callable[..., Awaitable[StreamResponse]]] = getattr(self, "get", None)
# using if/else in order to suppress mypy warning which doesn't know that
# ``_raise_allowed_methods`` raises exception
if get_method is not None: