Skip to content

Commit

Permalink
added noqa: E721 to prevent error in linter job
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Martinez authored and anselor committed Aug 4, 2023
1 parent b5befb1 commit d4a2fc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd2/cmd2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d4a2fc3

Please sign in to comment.