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`.
This commit is contained in:
parent
7cc622fc44
commit
33977c53d6
2 changed files with 2 additions and 0 deletions
1
crud.py
1
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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
from datetime import datetime
|
||||
from typing import Optional
|
||||
|
||||
from fastapi import Query
|
||||
from pydantic import BaseModel, EmailStr, root_validator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue