Skip to content

Commit 97b2b75

Browse files
committed
Correct type annotations
1 parent 74aa598 commit 97b2b75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bittensor_cli/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import warnings
1313
from dataclasses import fields
1414
from pathlib import Path
15-
from typing import Coroutine, Optional, Union
15+
from typing import Coroutine, Optional, Union, Literal
1616

1717
import numpy as np
1818
import rich
@@ -1671,7 +1671,7 @@ def wallet_ask(
16711671
wallet_name: Optional[str],
16721672
wallet_path: Optional[str],
16731673
wallet_hotkey: Optional[str],
1674-
ask_for: Optional[list[str]] = None,
1674+
ask_for: Optional[list[Union[str, Literal]]] = None,
16751675
validate: WV = WV.WALLET,
16761676
return_wallet_and_hotkey: bool = False,
16771677
) -> Union[Wallet, tuple[Wallet, str]]:

0 commit comments

Comments
 (0)