Skip to content

Commit 4a5c2f0

Browse files
committed
style: provide explicit bulk lookup return type
1 parent 705e182 commit 4a5c2f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wiopy/AsyncWIO.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import datetime
1111
import logging
1212
import time
13-
from collections.abc import Generator
13+
from collections.abc import AsyncGenerator, Generator
1414
from typing import Any, Final
1515

1616
import aiohttp
@@ -271,7 +271,7 @@ async def bulk_product_lookup(
271271
amount: int = 20,
272272
retries: int = 1,
273273
**kwargs: str,
274-
):
274+
) -> AsyncGenerator[list[WalmartProduct]]:
275275
"""
276276
Walmart product lookup for a bulk of products.
277277

wiopy/WalmartIO.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def product_lookup(self, ids: str | list[str], **kwargs: str) -> list[WalmartPro
267267

268268
def bulk_product_lookup(
269269
self, ids: str | list[str], amount: int = 20, retries: int = 1, **kwargs: str
270-
):
270+
) -> Generator[list[WalmartProduct]]:
271271
"""
272272
Walmart product lookup for a bulk of products.
273273

0 commit comments

Comments
 (0)