Imports Optional type hint
Some checks failed
lint / lint (push) Has been cancelled
/ release (push) Has been cancelled
/ pullrequest (push) Has been cancelled

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`.
This commit is contained in:
padreug 2025-11-04 01:42:14 +01:00
parent 7cc622fc44
commit 33977c53d6
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -1,4 +1,5 @@
from datetime import datetime
from typing import Optional
from fastapi import Query
from pydantic import BaseModel, EmailStr, root_validator