Skip to content

Commit 26ef9c9

Browse files
committed
Updated comments.
1 parent 1dffe3f commit 26ef9c9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

cmd2/decorators.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def with_category(
3636
) -> Callable[[F], F]:
3737
"""Decorate a ``do_*`` command function to apply a category.
3838
39-
This decorator has permissive type hints to allow for order-independent stacking
40-
with other decorators that may modify the function signature or return type of the
41-
command function.
39+
Permissive type hints allow this decorator to be stacked in any order, even
40+
when other decorators in the chain transform the signature or return type of
41+
the command function.
4242
4343
:param category: the name of the category in which this command should
4444
be grouped when displaying the list of commands.
@@ -347,9 +347,9 @@ def as_subcommand_to(
347347
) -> Callable[[F], F]:
348348
"""Tag a function as a subcommand to an existing argparse decorated command.
349349
350-
This decorator has permissive type hints to allow for order-independent stacking
351-
with other decorators that may modify the function signature or return type of the
352-
subcommand function.
350+
Permissive type hints allow this decorator to be stacked in any order, even
351+
when other decorators in the chain transform the signature or return type of
352+
the subcommand function.
353353
354354
While this decorator has permissive type hints, the subcommand function's signature
355355
must match the root command's signature. For example, if the root command uses

0 commit comments

Comments
 (0)