prettier and black

This commit is contained in:
Ben Arc
2021-04-04 13:28:46 +01:00
parent 69ef4d7e63
commit b2841ee909
8 changed files with 394 additions and 416 deletions
+4 -2
View File
@@ -1,6 +1,7 @@
from sqlite3 import Row
from typing import NamedTuple
class Wallets(NamedTuple):
id: str
user: str
@@ -17,11 +18,12 @@ class Wallets(NamedTuple):
class Mempool(NamedTuple):
user: str
endpoint: str
@classmethod
def from_row(cls, row: Row) -> "Mempool":
return cls(**dict(row))
class Addresses(NamedTuple):
id: str
address: str
@@ -30,4 +32,4 @@ class Addresses(NamedTuple):
@classmethod
def from_row(cls, row: Row) -> "Addresses":
return cls(**dict(row))
return cls(**dict(row))