Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions typer/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def get_help_record(self, ctx: _click.Context) -> tuple[str, str] | None:
extra.append(f"env var: {var_str}")

# Typer override:
# Extracted to _extract_default_help_str() to allow re-using it in rich_utils
# Extracted to _extract_default_help_str() to allow reusing it in rich_utils
default_value = self._extract_default_help_str(ctx=ctx)
# Typer override end

Expand All @@ -354,7 +354,7 @@ def get_help_record(self, ctx: _click.Context) -> tuple[str, str] | None:
default_value is not None and (self.show_default or ctx.show_default)
):
# Typer override:
# Extracted to _get_default_string() to allow re-using it in rich_utils
# Extracted to _get_default_string() to allow reusing it in rich_utils
default_string = self._get_default_string(
ctx=ctx,
show_default_is_str=show_default_is_str,
Expand Down Expand Up @@ -795,7 +795,7 @@ def _write_opts(opts: Sequence[str]) -> str:
extra.append(_("env var: {var}").format(var=var_str))

# Typer override:
# Extracted to _extract_default() to allow re-using it in rich_utils
# Extracted to _extract_default() to allow reusing it in rich_utils
default_value = self._extract_default_help_str(ctx=ctx)
# Typer override end

Expand All @@ -805,7 +805,7 @@ def _write_opts(opts: Sequence[str]) -> str:
default_value is not None and (self.show_default or ctx.show_default)
):
# Typer override:
# Extracted to _get_default_string() to allow re-using it in rich_utils
# Extracted to _get_default_string() to allow reusing it in rich_utils
default_string = self._get_default_string(
ctx=ctx,
show_default_is_str=show_default_is_str,
Expand Down
2 changes: 1 addition & 1 deletion typer/rich_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def _get_help_text(

# Get remaining lines, remove single line breaks and format as dim
if remaining_paragraphs:
# Add a newline inbetween the header and the remaining paragraphs
# Add a newline in between the header and the remaining paragraphs
yield Text("")
# Join with double linebreaks for markdown and Rich markup
remaining_lines = "\n\n".join(remaining_paragraphs)
Expand Down
Loading