Skip to content

Commit fc26812

Browse files
committed
fix python 3.8 list[] types
1 parent 5599847 commit fc26812

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/warnet/warnetd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
@jsonrpc.method("bcli")
6565
def bcli(
66-
node: int, method: str, params: list[str] = [], network: str = "warnet"
66+
node: int, method: str, params: List[str] = [], network: str = "warnet"
6767
) -> str:
6868
"""
6969
Call bitcoin-cli on <node> <method> <params> in [network]
@@ -128,7 +128,7 @@ def messages(network: str, node_a: int, node_b: int) -> str:
128128

129129

130130
@jsonrpc.method("list")
131-
def list() -> list[str]:
131+
def list() -> List[str]:
132132
"""
133133
List available scenarios in the Warnet Test Framework
134134
"""

0 commit comments

Comments
 (0)