Skip to content
Myr

:bug: Fix using solved/extracted help

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sebastián Ramírez · committed by Sebastián Ramírez · parent 0086b7b · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:typer/main.py+1 added-1 removed
305 unmodified lines
306307308def solve_typer_info_defaults(typer_info: TyperInfo) -> TyperInfo:309 values: Dict[str, Any] = {}310 values["help"] = solve_typer_info_help(typer_info)310 name = None311 for name, value in typer_info.__dict__.items():312 # Priority 1: Value was set in app.add_typer()313 if not isinstance(value, DefaultPlaceholder):
20 unmodified lines
334 # Value not set, use the default335 values[name] = value.value336 if values["name"] is None:337 values["name"] = get_group_name(typer_info)338 values["help"] = solve_typer_info_help(typer_info)339 return TyperInfo(**values)340341342def get_group_from_info(group_info: TyperInfo) -> click.Command:
390 unmodified lines