Skip to content

Commit

Permalink
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 14, 2025
1 parent b2234d9 commit 5b8aa86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion typer/rich_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ def _get_parameter_help(
if isinstance(param, (TyperOption, TyperArgument)):
default_value = param._extract_default_help_str(ctx=ctx)
show_default_is_str = isinstance(param.show_default, str)
if show_default_is_str or (default_value is not None and (param.show_default or ctx.show_default)):
if show_default_is_str or (
default_value is not None and (param.show_default or ctx.show_default)
):
default_str = param._get_default_string(
ctx=ctx,
show_default_is_str=show_default_is_str,
Expand Down

0 comments on commit 5b8aa86

Please # to comment.