Skip to content

Commit

Permalink
Fix rich-click deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Feb 10, 2025
1 parent 9b2d894 commit e1fb9fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bumpversion/aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import rich_click as click
from click import Context
from rich_click.rich_group import RichGroup
from rich_click.rich_command import RichGroup

from bumpversion.ui import print_warning

Expand All @@ -13,7 +13,7 @@ class AliasedGroup(RichGroup):
"""
This following example implements a subclass of Group that accepts a prefix for a command.
If there were a command called ``push``, it would accept ``pus`` as an alias (so long as it was unique)
If there were a command called `push`, it would accept `pus` as an alias (so long as it was unique)
"""

def get_command(self, ctx: Context, cmd_name: str) -> Optional[click.Command]: # type: ignore[return]
Expand Down

0 comments on commit e1fb9fa

Please sign in to comment.