We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1293b98 commit 7092c7fCopy full SHA for 7092c7f
podme_api/cli/cli.py
@@ -2,6 +2,7 @@
2
3
import argparse
4
import asyncio
5
+from collections.abc import AsyncGenerator
6
import contextlib
7
import logging
8
@@ -399,7 +400,7 @@ async def search(args) -> None:
399
400
401
402
@contextlib.asynccontextmanager
-async def _get_client(args) -> PodMeClient:
403
+async def _get_client(args) -> AsyncGenerator[PodMeClient, None]:
404
"""Return PodMeClient based on args."""
405
if hasattr(args, "username") and hasattr(args, "password"):
406
user_creds = PodMeUserCredentials(args.username, args.password)
0 commit comments