diff --git a/aiohttp_apispec/aiohttp_apispec.py b/aiohttp_apispec/aiohttp_apispec.py index 98cf1b4..7160bdd 100644 --- a/aiohttp_apispec/aiohttp_apispec.py +++ b/aiohttp_apispec/aiohttp_apispec.py @@ -300,8 +300,10 @@ async def index(request): :param prefix: prefix to add to all registered routes :param schema_name_resolver: custom schema_name_resolver for MarshmallowPlugin. :param kwargs: any apispec.APISpec kwargs + :return: return instance of AiohttpApiSpec class + :rtype: AiohttpApiSpec """ - AiohttpApiSpec( + return AiohttpApiSpec( url, app, request_data_name,