From 6c9a52c6e1595c8f0c59cd2bf2db7602208a6aa0 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 24 Jan 2023 13:48:04 +0000 Subject: [PATCH] mypy being thoroughly objectionable --- lnbits/core/views/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/core/views/api.py b/lnbits/core/views/api.py index b72cc244b..105c240bd 100644 --- a/lnbits/core/views/api.py +++ b/lnbits/core/views/api.py @@ -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