diff options
author | fanquake <fanquake@gmail.com> | 2021-05-28 13:21:14 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-06-03 20:45:03 +0800 |
commit | 8bfcba36db974326d258c610456bd55cf5818b1e (patch) | |
tree | 6c368e76ccff9681e7e9e5faa067d0f07701e686 /test | |
parent | b043ca8e8b65199061ebe4bbed2200504dfc6ce9 (diff) |
test: convert docs into type annotations in test_framework/wallet.py
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/test_framework/wallet.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/test_framework/wallet.py b/test/functional/test_framework/wallet.py index bfb5916c37..0962a5cb54 100644 --- a/test/functional/test_framework/wallet.py +++ b/test/functional/test_framework/wallet.py @@ -6,6 +6,7 @@ from decimal import Decimal from enum import Enum +from typing import Optional from test_framework.address import ADDRESS_BCRT1_P2WSH_OP_TRUE from test_framework.key import ECKey from test_framework.messages import ( @@ -105,12 +106,12 @@ class MiniWallet: def get_address(self): return self._address - def get_utxo(self, *, txid='', mark_as_spent=True): + def get_utxo(self, *, txid: Optional[str]='', mark_as_spent=True): """ Returns a utxo and marks it as spent (pops it from the internal list) Args: - txid (string), optional: get the first utxo we find from a specific transaction + txid: get the first utxo we find from a specific transaction Note: Can be used to get the change output immediately after a send_self_transfer """ |