Skip to content

Commit

Permalink
🐛 fix formatter error for detector and printer
Browse files Browse the repository at this point in the history
  • Loading branch information
MeditationDuck authored and michprev committed May 10, 2024
1 parent 41c0378 commit 250a272
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions wake/cli/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ def detector_collisions(self) -> FrozenSet[Tuple[str, str, str]]:
return frozenset(self._detector_collisions)

def format_help(self, ctx: click.Context, formatter: click.HelpFormatter) -> None:
self.formatter.config.commands_panel_title = "Detectors"
formatter.config.commands_panel_title = "Detectors"
super().format_help(ctx, formatter)
self.formatter.config.commands_panel_title = "Commands"
formatter.config.commands_panel_title = "Commands"

def add_verified_plugin_path(self, path: Path) -> None:
import tomli
Expand Down
4 changes: 2 additions & 2 deletions wake/cli/print.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ def printer_collisions(self) -> FrozenSet[Tuple[str, str, str]]:
return frozenset(self._printer_collisions)

def format_help(self, ctx: click.Context, formatter: click.HelpFormatter) -> None:
self.formatter.config.commands_panel_title = "Printers"
formatter.config.commands_panel_title = "Printers"
super().format_help(ctx, formatter)
self.formatter.config.commands_panel_title = "Commands"
formatter.config.commands_panel_title = "Commands"

def add_verified_plugin_path(self, path: Path) -> None:
import tomli
Expand Down

0 comments on commit 250a272

Please sign in to comment.