From d4a2fc358cce4af3e195c0912a28c90b6c72ccf2 Mon Sep 17 00:00:00 2001 From: Federico Martinez Date: Thu, 3 Aug 2023 10:10:58 -0300 Subject: [PATCH] added noqa: E721 to prevent error in linter job --- cmd2/cmd2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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