mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-29 13:22:37 +02:00
refactor: remove redundant # type: ignore
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
from embit.descriptor import Descriptor, Key # type: ignore
|
from embit.descriptor import Descriptor, Key
|
||||||
from embit.descriptor.arguments import AllowedDerivation # type: ignore
|
from embit.descriptor.arguments import AllowedDerivation
|
||||||
from embit.networks import NETWORKS # type: ignore
|
from embit.networks import NETWORKS
|
||||||
|
|
||||||
|
|
||||||
def detect_network(k):
|
def detect_network(k):
|
||||||
|
@@ -73,8 +73,7 @@ async def api_wallet_create_or_update(
|
|||||||
data: CreateWallet, w: WalletTypeInfo = Depends(require_admin_key)
|
data: CreateWallet, w: WalletTypeInfo = Depends(require_admin_key)
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
# TODO: talk to motorina about this
|
(descriptor, network) = parse_key(data.masterpub)
|
||||||
(descriptor, network) = parse_key(data.masterpub) # type: ignore
|
|
||||||
if data.network != network["name"]:
|
if data.network != network["name"]:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Account network error. This account is for '{}'".format(
|
"Account network error. This account is for '{}'".format(
|
||||||
|
Reference in New Issue
Block a user