mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 10:39:59 +01:00
change class to pydantic
This commit is contained in:
parent
0cd828d43f
commit
de0f6389ae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user