File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,11 @@ async def get_tokens_from_opensea(
124
124
slug : str
125
125
Opensea collection slug
126
126
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
128
132
129
133
Returns
130
134
-------
@@ -172,7 +176,7 @@ async def get_tokens_from_opensea(
172
176
r .raise_for_status ()
173
177
174
178
# The API does not sort return value assets by token ID, so sort then return
175
- tokens = []
179
+ tokens : list [ Token ] = []
176
180
assets = sorted (
177
181
r .json ()["assets" ], key = (lambda a : int (a ["token_id" ]))
178
182
)
You can’t perform that action at this time.
0 commit comments