Skip to content

Commit

Permalink
Format with yapf
Browse files Browse the repository at this point in the history
  • Loading branch information
olzhasar-reef committed May 8, 2024
1 parent 6000fe7 commit 6b0448e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions b2/_internal/arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def __init__(
self._description = None
self._for_docs = for_docs
self.deprecated = deprecated
self._short_description = self._make_short_description(kwargs.get('usage', ''), kwargs.get('description', ''))
self._short_description = self._make_short_description(
kwargs.get('usage', ''), kwargs.get('description', '')
)
kwargs.setdefault('formatter_class', B2RawTextHelpFormatter)
super().__init__(*args, **kwargs)

Expand All @@ -118,9 +120,7 @@ def _encode_description(self, value: str):
return textwrap.dedent(value)
else:
encoding = self._get_encoding()
return rst2ansi(
value.encode(encoding), output_encoding=encoding
)
return rst2ansi(value.encode(encoding), output_encoding=encoding)

def _make_short_description(self, usage: str, raw_description: str) -> str:
if usage:
Expand Down

0 comments on commit 6b0448e

Please sign in to comment.