File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9779,9 +9779,7 @@ def proxy_remove(
97799779
97809780 if all and delegate :
97819781 if not json_output :
9782- print_error (
9783- "--delegate cannot be used together with --all flag."
9784- )
9782+ print_error ("--delegate cannot be used together with --all flag." )
97859783 else :
97869784 json_console .print_json (
97879785 data = {
Original file line number Diff line number Diff line change @@ -1757,8 +1757,9 @@ def prompt_for_subnet_identity(
17571757 "github_repo" ,
17581758 "[blue]GitHub repository URL [dim](optional)[/blue]" ,
17591759 github_repo ,
1760- lambda x : x
1761- and (not is_valid_github_url (x ) or len (x .encode ("utf-8" )) > 1024 ),
1760+ lambda x : (
1761+ x and (not is_valid_github_url (x ) or len (x .encode ("utf-8" )) > 1024 )
1762+ ),
17621763 "[red]Error:[/red] Please enter a valid GitHub repository URL (e.g., https://github.com/username/repo)." ,
17631764 ),
17641765 (
Original file line number Diff line number Diff line change @@ -167,9 +167,11 @@ def create_table(
167167 root_stakes = [s for s in substakes_ if s .netuid == 0 ]
168168 other_stakes = sorted (
169169 [s for s in substakes_ if s .netuid != 0 ],
170- key = lambda x : dynamic_info [x .netuid ]
171- .alpha_to_tao (Balance .from_rao (int (x .stake .rao )).set_unit (x .netuid ))
172- .tao ,
170+ key = lambda x : (
171+ dynamic_info [x .netuid ]
172+ .alpha_to_tao (Balance .from_rao (int (x .stake .rao )).set_unit (x .netuid ))
173+ .tao
174+ ),
173175 reverse = True ,
174176 )
175177 sorted_substakes = root_stakes + other_stakes
@@ -328,9 +330,11 @@ def format_cell(
328330 root_stakes = [s for s in substakes if s .netuid == 0 ]
329331 other_stakes = sorted (
330332 [s for s in substakes if s .netuid != 0 ],
331- key = lambda x : dynamic_info_for_lt [x .netuid ]
332- .alpha_to_tao (Balance .from_rao (int (x .stake .rao )).set_unit (x .netuid ))
333- .tao ,
333+ key = lambda x : (
334+ dynamic_info_for_lt [x .netuid ]
335+ .alpha_to_tao (Balance .from_rao (int (x .stake .rao )).set_unit (x .netuid ))
336+ .tao
337+ ),
334338 reverse = True ,
335339 )
336340 sorted_substakes = root_stakes + other_stakes
Original file line number Diff line number Diff line change @@ -802,7 +802,6 @@ def test_new_hyperparams_owner_settable_true():
802802 assert HYPERPARAMS_METADATA [key ]["owner_settable" ] is True
803803
804804
805-
806805# ============================================================================
807806# Tests for proxy_remove command
808807# ============================================================================
You can’t perform that action at this time.
0 commit comments