Skip to content

Commit a6d63c6

Browse files
author
Ricahrd Hammond
committed
Address mypy errors
1 parent 57212c9 commit a6d63c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd2/cmd2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ def unregister_command_set(self, cmdset: CommandSet) -> None:
778778
cmdset.on_unregister()
779779
self._unregister_subcommands(cmdset)
780780

781-
methods = inspect.getmembers(
781+
methods: List[Tuple[str, Callable[[Any], Any]]] = inspect.getmembers(
782782
cmdset,
783783
predicate=lambda meth: isinstance(meth, Callable) # type: ignore[arg-type]
784784
and hasattr(meth, '__name__')
@@ -809,7 +809,7 @@ def unregister_command_set(self, cmdset: CommandSet) -> None:
809809
self._installed_command_sets.remove(cmdset)
810810

811811
def _check_uninstallable(self, cmdset: CommandSet) -> None:
812-
methods = inspect.getmembers(
812+
methods: List[Tuple[str, Callable[[Any], Any]]] = inspect.getmembers(
813813
cmdset,
814814
predicate=lambda meth: isinstance(meth, Callable) # type: ignore[arg-type]
815815
and hasattr(meth, '__name__')

0 commit comments

Comments
 (0)