mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-23 22:47:05 +01:00
change class to pydantic
This commit is contained in:
parent
0cd828d43f
commit
de0f6389ae
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue