lnbits-legend/lnbits/extensions/example/models.py

12 lines
219 B
Python
Raw Normal View History

2020-12-31 18:50:16 +01:00
# from sqlite3 import Row
# from typing import NamedTuple
2020-12-02 10:45:12 +00:00
2020-12-31 18:50:16 +01:00
# class Example(NamedTuple):
2020-12-02 10:45:12 +00:00
# id: str
# wallet: str
#
# @classmethod
# def from_row(cls, row: Row) -> "Example":
2020-12-31 18:50:16 +01:00
# return cls(**dict(row))