Skip to content

Commit

Permalink
Updating comment
Browse files Browse the repository at this point in the history
  • Loading branch information
anselor committed Mar 23, 2021
1 parent 67010a9 commit fabe4cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd2/cmd2.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ def _unregister_subcommands(self, cmdset: Union[CommandSet, 'Cmd']) -> None:
if not (cmdset is self or cmdset in self._installed_command_sets):
raise CommandSetRegistrationError('Cannot unregister subcommands with an unregistered CommandSet')

# find all methods that start with the subcommand prefix
# find methods that have the required attributes necessary to be recognized as a sub-command
methods = inspect.getmembers(
cmdset,
predicate=lambda meth: isinstance(meth, Callable)
Expand Down

0 comments on commit fabe4cd

Please sign in to comment.