Skip to content

Commit 7092c7f

Browse files
committed
typing
1 parent 1293b98 commit 7092c7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

podme_api/cli/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import argparse
44
import asyncio
5+
from collections.abc import AsyncGenerator
56
import contextlib
67
import logging
78

@@ -399,7 +400,7 @@ async def search(args) -> None:
399400

400401

401402
@contextlib.asynccontextmanager
402-
async def _get_client(args) -> PodMeClient:
403+
async def _get_client(args) -> AsyncGenerator[PodMeClient, None]:
403404
"""Return PodMeClient based on args."""
404405
if hasattr(args, "username") and hasattr(args, "password"):
405406
user_creds = PodMeUserCredentials(args.username, args.password)

0 commit comments

Comments
 (0)