From b5f7637f6d5b8f2f43e2064dfbfacd2935219939 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Tue, 26 Nov 2024 14:00:49 +0200 Subject: [PATCH] chore: fix lint --- views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/views.py b/views.py index 6bfd586..dd61002 100644 --- a/views.py +++ b/views.py @@ -1,4 +1,5 @@ from http import HTTPStatus +from typing import Optional from fastapi import APIRouter, Depends, HTTPException, Request from lnbits.core.models import User @@ -31,7 +32,7 @@ async def tpos(request: Request, tpos_id): raise HTTPException( status_code=HTTPStatus.NOT_FOUND, detail="TPoS does not exist." ) - withdraw_pin_open = 0 + withdraw_pin_open: Optional[int] = 0 if tpos.withdraw_pin_disabled: withdraw_pin_open = tpos.withdraw_pin