Skip to content

Commit

Permalink
Return AiohttpApiSpec for setup_aiohttp_apispec
Browse files Browse the repository at this point in the history
  • Loading branch information
hyzyla committed Feb 7, 2022
1 parent d636e88 commit b228231
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aiohttp_apispec/aiohttp_apispec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

1 comment on commit b228231

@KurganskyVladimir
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, fix return type for setup_aiohttp_apispec from None to AiohttpApiSpec

Please sign in to comment.