aboutsummaryrefslogtreecommitdiff
path: root/test/functional/data
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-02-08 10:24:50 +0800
committerfanquake <fanquake@gmail.com>2021-02-08 13:24:44 +0800
commit9913419cc9db5f8ce7afa0c3774468c330136064 (patch)
treef063b8de6dd2e3e3591910f91a7395a9288b4c7c /test/functional/data
parentcf26ca3911f3c9ad1583716075b6dd07b76e3ff0 (diff)
test: remove type: comments in favour of actual annotations
Now that we require Python 3.6+, we should be using variable type annotations directly rather than # type: comments. Also takes care of the discarded value issue in p2p_message_capture.py. See: https://github.com/bitcoin/bitcoin/pull/19509/files#r571674446.
Diffstat (limited to 'test/functional/data')
-rw-r--r--test/functional/data/invalid_txs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/data/invalid_txs.py b/test/functional/data/invalid_txs.py
index 6e72db1d96..fab921ef19 100644
--- a/test/functional/data/invalid_txs.py
+++ b/test/functional/data/invalid_txs.py
@@ -57,7 +57,7 @@ class BadTxTemplate:
__metaclass__ = abc.ABCMeta
# The expected error code given by bitcoind upon submission of the tx.
- reject_reason = "" # type: Optional[str]
+ reject_reason: Optional[str] = ""
# Only specified if it differs from mempool acceptance error.
block_reject_reason = ""