mypy being thoroughly objectionable

This commit is contained in:
ben 2023-01-24 13:48:04 +00:00
parent caadeb77e2
commit 6c9a52c6e1

View File

@ -715,7 +715,7 @@ async def websocket_update_get(item_id: str, data: str):
@core_app.post("/api/v1/tinyurl")
async def api_create_tinyurl(url: str, endless: Optional[bool] = False):
async def api_create_tinyurl(url: str, endless: bool = False):
tinyurl = await get_tinyurl_by_url(url)
if tinyurl:
return tinyurl