lnbits-legend/lnbits/extensions/tpos/models.py
2020-05-08 21:11:59 +02:00

13 lines
233 B
Python

from sqlite3 import Row
from typing import NamedTuple
class TPoS(NamedTuple):
id: str
wallet: str
name: str
currency: str
@classmethod
def from_row(cls, row: Row) -> "TPoS":
return cls(**dict(row))