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 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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue