Skip to content

Commit d4a2fc3

Browse files
federico-e-martinezanselor
authored andcommitted
added noqa: E721 to prevent error in linter job
1 parent b5befb1 commit d4a2fc3

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
@@ -547,7 +547,7 @@ def find_commandsets(self, commandset_type: Type[CommandSet], *, subclass_match:
547547
return [
548548
cmdset
549549
for cmdset in self._installed_command_sets
550-
if type(cmdset) == commandset_type or (subclass_match and isinstance(cmdset, commandset_type))
550+
if type(cmdset) == commandset_type or (subclass_match and isinstance(cmdset, commandset_type)) # noqa: E721
551551
]
552552

553553
def find_commandset_for_command(self, command_name: str) -> Optional[CommandSet]:
@@ -5551,7 +5551,7 @@ def _resolve_func_self(
55515551
func_self = None
55525552
candidate_sets: List[CommandSet] = []
55535553
for installed_cmd_set in self._installed_command_sets:
5554-
if type(installed_cmd_set) == func_class:
5554+
if type(installed_cmd_set) == func_class: # noqa: E721
55555555
# Case 2: CommandSet is an exact type match for the function's CommandSet
55565556
func_self = installed_cmd_set
55575557
break

0 commit comments

Comments
 (0)