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 sqlite3 import Row
|
||||||
from typing import NamedTuple
|
from pydantic import BaseModel
|
||||||
|
#from typing import NamedTuple
|
||||||
|
|
||||||
|
|
||||||
class TPoS(NamedTuple):
|
class TPoS(BaseModel):
|
||||||
id: str
|
id: str
|
||||||
wallet: str
|
wallet: str
|
||||||
name: str
|
name: str
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue