Skip to content

Commit 395923d

Browse files
Docstring fix
1 parent 5a7174d commit 395923d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

open_rarity/resolver/opensea_api_helpers.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ async def get_tokens_from_opensea(
124124
slug : str
125125
Opensea collection slug
126126
token_ids : list[int]
127-
List of token ids to fetch for
127+
List of token ids to fetch
128+
client : httpx.AsyncClient
129+
Async client used to make api calls
130+
sem : BoundedSemaphore | Semaphore
131+
From the asyncio library and is used to rate limit api calls
128132
129133
Returns
130134
-------
@@ -172,7 +176,7 @@ async def get_tokens_from_opensea(
172176
r.raise_for_status()
173177

174178
# The API does not sort return value assets by token ID, so sort then return
175-
tokens = []
179+
tokens: list[Token] = []
176180
assets = sorted(
177181
r.json()["assets"], key=(lambda a: int(a["token_id"]))
178182
)

0 commit comments

Comments
 (0)