Skip to content

Commit 8bfcba3

Browse files
committed
test: convert docs into type annotations in test_framework/wallet.py
1 parent b043ca8 commit 8bfcba3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/functional/test_framework/wallet.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from decimal import Decimal
88
from enum import Enum
9+
from typing import Optional
910
from test_framework.address import ADDRESS_BCRT1_P2WSH_OP_TRUE
1011
from test_framework.key import ECKey
1112
from test_framework.messages import (
@@ -105,12 +106,12 @@ def generate(self, num_blocks):
105106
def get_address(self):
106107
return self._address
107108

108-
def get_utxo(self, *, txid='', mark_as_spent=True):
109+
def get_utxo(self, *, txid: Optional[str]='', mark_as_spent=True):
109110
"""
110111
Returns a utxo and marks it as spent (pops it from the internal list)
111112
112113
Args:
113-
txid (string), optional: get the first utxo we find from a specific transaction
114+
txid: get the first utxo we find from a specific transaction
114115
115116
Note: Can be used to get the change output immediately after a send_self_transfer
116117
"""

0 commit comments

Comments
 (0)