Skip to content

Commit

Permalink
[Units] Add type hint for get_random_article function
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jul 31, 2023
1 parent 6a6bcf9 commit f0f0818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion units/wikis.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ async def get_random_article(
# https://www.mediawiki.org/wiki/Help:Namespaces
# https://en.wikipedia.org/wiki/Wikipedia:Namespace
# https://community.fandom.com/wiki/Help:Namespaces
):
) -> WikiArticle:
async with ensure_session(aiohttp_session) as aiohttp_session:
api_url = await get_api_endpoint(
url, aiohttp_session = aiohttp_session
Expand Down

0 comments on commit f0f0818

Please sign in to comment.