diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 7cb1b9cc..f1e6c847 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -547,7 +547,7 @@ def find_commandsets(self, commandset_type: Type[CommandSet], *, subclass_match: return [ cmdset for cmdset in self._installed_command_sets - if type(cmdset) == commandset_type or (subclass_match and isinstance(cmdset, commandset_type)) + if type(cmdset) == commandset_type or (subclass_match and isinstance(cmdset, commandset_type)) # noqa: E721 ] def find_commandset_for_command(self, command_name: str) -> Optional[CommandSet]: @@ -5551,7 +5551,7 @@ def _resolve_func_self( func_self = None candidate_sets: List[CommandSet] = [] for installed_cmd_set in self._installed_command_sets: - if type(installed_cmd_set) == func_class: + if type(installed_cmd_set) == func_class: # noqa: E721 # Case 2: CommandSet is an exact type match for the function's CommandSet func_self = installed_cmd_set break