Skip to content

Commit 40a7cfd

Browse files
fix bullshit ass type errors and such
1 parent b1415b5 commit 40a7cfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import re
1616
import traceback
1717
from typing import List, Tuple
18-
from playwright.async_api import async_playwright
18+
from playwright.async_api import async_playwright, Response
1919
from playwright._impl._errors import Error as PlaywrightError
2020

2121

@@ -269,8 +269,8 @@ async def dynamic_download(request: Request, key: str, file_name: str = Query(..
269269
try:
270270
result = await execute_async_code(code)
271271

272-
content = None
273-
response = None
272+
content: bytes
273+
response: Response
274274

275275
if not BROWSER_WS:
276276
async with aiohttp.ClientSession() as session:

0 commit comments

Comments
 (0)