File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -390,17 +390,17 @@ def get_command(typer_instance: Typer) -> click.Command:
390390
391391
392392def get_group_name (typer_info : TyperInfo ) -> Optional [str ]:
393- if typer_info .callback :
394- # Priority 1: Callback passed in app.add_typer()
395- return get_command_name (typer_info .callback .__name__ )
396- if typer_info .typer_instance :
397- registered_callback = typer_info .typer_instance .registered_callback
398- if registered_callback :
399- if registered_callback .callback :
400- # Priority 2: Callback passed in @subapp.callback()
401- return get_command_name (registered_callback .callback .__name__ )
402- if typer_info .typer_instance .info .callback :
403- return get_command_name (typer_info .typer_instance .info .callback .__name__ )
393+ # if typer_info.callback:
394+ # # Priority 1: Callback passed in app.add_typer()
395+ # return get_command_name(typer_info.callback.__name__)
396+ # if typer_info.typer_instance:
397+ # registered_callback = typer_info.typer_instance.registered_callback
398+ # if registered_callback:
399+ # if registered_callback.callback:
400+ # # Priority 2: Callback passed in @subapp.callback()
401+ # return get_command_name(registered_callback.callback.__name__)
402+ # if typer_info.typer_instance.info.callback:
403+ # return get_command_name(typer_info.typer_instance.info.callback.__name__)
404404 return None
405405
406406
You can’t perform that action at this time.
0 commit comments