Skip to content

Commit 580233c

Browse files
committed
Use more complete annotation syntax for the with_annotated decorator
1 parent 53b236b commit 580233c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

examples/getting_started.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ def get_rprompt(self) -> AnyFormattedText:
164164
@cmd2.with_annotated
165165
def do_intro(
166166
self,
167-
interactive: Annotated[bool, Option(help_text="If True, prints a simulated interactive setup message")] = False,
167+
interactive: Annotated[
168+
bool, Option(help_text="If True, prints a simulated interactive setup message after the intro banner")
169+
] = False,
168170
repeat: Annotated[int, Option(help_text="Number of times to repeat the intro banner")] = 1,
169171
) -> None:
170172
"""Display the intro banner.

0 commit comments

Comments
 (0)