Skip to content

Commit

Permalink
ENH: Some web service may return a list of dict instead of dict such …
Browse files Browse the repository at this point in the history
…as NLDI. [skip ci]
  • Loading branch information
Taher Chegini committed Feb 10, 2023
1 parent 445dda4 commit ceb25bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions async_retriever/async_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from aiohttp.typedefs import StrOrURL

RESPONSE = Union[list[str], list[bytes], list[dict[str, Any]]]
RESPONSE = Union[list[str], list[bytes], list[dict[str, Any]], list[list[dict[str, Any]]]]

__all__ = [
"delete_url_cache",
Expand Down Expand Up @@ -292,7 +292,7 @@ def retrieve(
expire_after: float = -1,
ssl: SSLContext | bool | None = None,
disable: bool = False,
) -> list[dict[str, Any]]:
) -> list[dict[str, Any]] | list[list[dict[str, Any]]]:
...


Expand Down Expand Up @@ -492,7 +492,7 @@ def retrieve_json(
expire_after: float = -1,
ssl: SSLContext | bool | None = None,
disable: bool = False,
) -> list[dict[str, Any]]:
) -> list[dict[str, Any]] | list[list[dict[str, Any]]]:
r"""Send async requests and get the response as ``json``.
Parameters
Expand Down

0 comments on commit ceb25bc

Please sign in to comment.