change class to pydantic

This commit is contained in:
Tiago vasconcelos 2021-08-20 17:14:26 +01:00
parent 0cd828d43f
commit de0f6389ae

View File

@ -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