Skip to content

Commit b6a9832

Browse files
chore: format
1 parent d913f06 commit b6a9832

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

docs/features/annotated.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ def manage_project_add(self, name: str):
236236
## Lower-level parser building
237237

238238
[cmd2.annotated.build_parser_from_function][cmd2.annotated.build_parser_from_function] builds the
239-
parser directly from a function without registering a command. It accepts the same
240-
`groups`, `mutually_exclusive_groups`, `description`, `epilog`, `formatter_class`, and
241-
`parser_class` arguments as `@with_annotated`.
239+
parser directly from a function without registering a command. It accepts the same `groups`,
240+
`mutually_exclusive_groups`, `description`, `epilog`, `formatter_class`, and `parser_class`
241+
arguments as `@with_annotated`.
242242

243243
```py
244244
@with_annotated(preserve_quotes=True)

examples/annotated_example.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,7 @@ def manage_project_list(self) -> None:
323323
@with_annotated(
324324
description="Open a network connection.",
325325
epilog="Example: connect example.com --port 2222",
326-
groups=(
327-
Group("host", "port", title="connection", description="where to connect"),
328-
),
326+
groups=(Group("host", "port", title="connection", description="where to connect"),),
329327
)
330328
@cmd2.with_category(ANNOTATED_CATEGORY)
331329
def do_connect(self, host: str, port: int = 22, verbose: bool = False) -> None:

0 commit comments

Comments
 (0)