Skip to content

Commit

Permalink
Drop unnecessary __init__ overload.
Browse files Browse the repository at this point in the history
Add missing return type.
  • Loading branch information
helly25 committed Sep 7, 2024
1 parent d6216c4 commit 0fefcbb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mbo/app/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@ def SetOutputMode(cls, output_mode: HelpOutputMode):
def IsOutputMode(self, output_mode: HelpOutputMode) -> bool:
return self._help_output_mode == output_mode

def __init__(self, **kwargs) -> None:
super(CommandParagraphFormatter, self).__init__(**kwargs)

def _fill_text(self, text: str, width: int, indent: str) -> str:
if len(indent) > 4:
indent = " " * 4
Expand Down Expand Up @@ -178,7 +175,7 @@ def _fill_text(self, text: str, width: int, indent: str) -> str:
)
return result

def _format_action_invocation(self, action):
def _format_action_invocation(self, action) -> str:
result = super(CommandParagraphFormatter, self)._format_action_invocation(
action
)
Expand Down

0 comments on commit 0fefcbb

Please sign in to comment.