mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-13 11:25:02 -05:00
Change type definitions for "chain" and "setup_clean_chain" from type comments to Python 3.6+ types. Additionally, set type for "nodes".
This commit is contained in:
parent
7acda55c4f
commit
5353b0c64d
1 changed files with 4 additions and 6 deletions
|
@ -18,6 +18,7 @@ import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
from typing import List
|
||||||
from .authproxy import JSONRPCException
|
from .authproxy import JSONRPCException
|
||||||
from . import coverage
|
from . import coverage
|
||||||
from .p2p import NetworkThread
|
from .p2p import NetworkThread
|
||||||
|
@ -89,14 +90,11 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
||||||
|
|
||||||
This class also contains various public and private helper methods."""
|
This class also contains various public and private helper methods."""
|
||||||
|
|
||||||
chain = None # type: str
|
|
||||||
setup_clean_chain = None # type: bool
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""Sets test framework defaults. Do not override this method. Instead, override the set_test_params() method"""
|
"""Sets test framework defaults. Do not override this method. Instead, override the set_test_params() method"""
|
||||||
self.chain = 'regtest'
|
self.chain: str = 'regtest'
|
||||||
self.setup_clean_chain = False
|
self.setup_clean_chain: bool = False
|
||||||
self.nodes = []
|
self.nodes: List[TestNode] = []
|
||||||
self.network_thread = None
|
self.network_thread = None
|
||||||
self.rpc_timeout = 60 # Wait for up to 60 seconds for the RPC server to respond
|
self.rpc_timeout = 60 # Wait for up to 60 seconds for the RPC server to respond
|
||||||
self.supports_cli = True
|
self.supports_cli = True
|
||||||
|
|
Loading…
Add table
Reference in a new issue