From c394ec0757d8de16bb0336dff5fc26ba12010bd6 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Tue, 8 Jul 2025 16:55:15 +0200 Subject: [PATCH] Fixed broken type annotation. --- bittensor_cli/src/commands/sudo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bittensor_cli/src/commands/sudo.py b/bittensor_cli/src/commands/sudo.py index 8d7950392..88032df89 100644 --- a/bittensor_cli/src/commands/sudo.py +++ b/bittensor_cli/src/commands/sudo.py @@ -79,7 +79,7 @@ def allowed_value( return True, value -def string_to_bool(val) -> bool | type[ValueError]: +def string_to_bool(val) -> bool: try: return {"true": True, "1": True, "0": False, "false": False}[val.lower()] except KeyError: