mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-23 14:40:47 +01:00
refactor: remove redundant # type: ignore
This commit is contained in:
parent
6ea5069835
commit
d51ba2b4fb
2 changed files with 4 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
from embit.descriptor import Descriptor, Key # type: ignore
|
||||
from embit.descriptor.arguments import AllowedDerivation # type: ignore
|
||||
from embit.networks import NETWORKS # type: ignore
|
||||
from embit.descriptor import Descriptor, Key
|
||||
from embit.descriptor.arguments import AllowedDerivation
|
||||
from embit.networks import NETWORKS
|
||||
|
||||
|
||||
def detect_network(k):
|
||||
|
|
|
@ -73,8 +73,7 @@ async def api_wallet_create_or_update(
|
|||
data: CreateWallet, w: WalletTypeInfo = Depends(require_admin_key)
|
||||
):
|
||||
try:
|
||||
# TODO: talk to motorina about this
|
||||
(descriptor, network) = parse_key(data.masterpub) # type: ignore
|
||||
(descriptor, network) = parse_key(data.masterpub)
|
||||
if data.network != network["name"]:
|
||||
raise ValueError(
|
||||
"Account network error. This account is for '{}'".format(
|
||||
|
|
Loading…
Add table
Reference in a new issue