From b02b33f8ae9fd52152861bbdeb49f47567f74c2c Mon Sep 17 00:00:00 2001 From: maxtaran2010 Date: Fri, 10 Jul 2026 01:01:46 +0300 Subject: [PATCH] Fix typos: reusing, in between - core.py: replace "re-using" with "reusing" in four comments - rich_utils.py: replace "inbetween" with "in between" in a comment Co-Authored-By: Claude Sonnet 4.6 --- typer/core.py | 8 ++++---- typer/rich_utils.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/typer/core.py b/typer/core.py index 6868ab4355..86112e2093 100644 --- a/typer/core.py +++ b/typer/core.py @@ -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 @@ -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, @@ -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 @@ -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, diff --git a/typer/rich_utils.py b/typer/rich_utils.py index de68f60644..6ed877a53a 100644 --- a/typer/rich_utils.py +++ b/typer/rich_utils.py @@ -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)