mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-29 05:12:39 +02:00
change class to pydantic
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
from sqlite3 import Row
|
||||
from typing import NamedTuple
|
||||
from pydantic import BaseModel
|
||||
#from typing import NamedTuple
|
||||
|
||||
|
||||
class TPoS(NamedTuple):
|
||||
class TPoS(BaseModel):
|
||||
id: str
|
||||
wallet: str
|
||||
name: str
|
||||
|
Reference in New Issue
Block a user