Skip to content

Commit

Permalink
refactor: Improve display of moved parameter breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Nov 12, 2022
1 parent 9ad7a2c commit 267bede
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/griffe/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,15 @@ class ParameterMovedBreakage(Breakage):

kind: BreakageKind = BreakageKind.PARAMETER_MOVED

def _format_title(self) -> str:
return f"{self._relative_path()}({Fore.BLUE}{self.old_value.name}{Fore.RESET})"

def _format_old_value(self) -> str:
return ""

def _format_new_value(self) -> str:
return ""


class ParameterRemovedBreakage(Breakage):
"""Specific breakage class for removed parameters."""
Expand Down

0 comments on commit 267bede

Please sign in to comment.