From 33977c53d6ad7e3dc20ce851dc2f5b4762989556 Mon Sep 17 00:00:00 2001 From: padreug Date: Tue, 4 Nov 2025 01:42:14 +0100 Subject: [PATCH] Imports Optional type hint Imports the `Optional` type hint from the `typing` module into `crud.py` and `models.py`. This provides more explicit type annotations where values can be `None`. --- crud.py | 1 + models.py | 1 + 2 files changed, 2 insertions(+) diff --git a/crud.py b/crud.py index 90c7c9d..8e48475 100644 --- a/crud.py +++ b/crud.py @@ -1,4 +1,5 @@ from datetime import datetime, timedelta, timezone +from typing import Optional from lnbits.db import Database from lnbits.helpers import urlsafe_short_hash diff --git a/models.py b/models.py index 06f4d8e..d3bf696 100644 --- a/models.py +++ b/models.py @@ -1,4 +1,5 @@ from datetime import datetime +from typing import Optional from fastapi import Query from pydantic import BaseModel, EmailStr, root_validator