Skip to content

Commit 72ca7bd

Browse files
committed
Updated comment.
1 parent 2829a9c commit 72ca7bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd2/cmd2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,8 @@ def _build_parser(
944944
elif isinstance(parser_source, classmethod):
945945
parser = parser_source.__func__(owner.__class__)
946946
else:
947-
# Inspect the signature to determine if this factory expects a class argument.
947+
# Following the ParserSource definition, any function with parameters
948+
# is assumed to be a one-argument factory expecting the owner's class.
948949
builder_sig = inspect.signature(parser_source)
949950

950951
if builder_sig.parameters:

0 commit comments

Comments
 (0)