mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 14:51:05 +01:00
13 lines
233 B
Python
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))
|