Skip to content

Commit

Permalink
Removing unnecessary-dict-index-lookup lint rule and updates (#12373)
Browse files Browse the repository at this point in the history
  • Loading branch information
joesho112358 authored May 9, 2024
1 parent 4a6c570 commit 48709af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ disable = [
"no-value-for-parameter",
"not-context-manager",
"unexpected-keyword-arg",
"unnecessary-dict-index-lookup",
"unnecessary-dunder-call",
"unnecessary-lambda-assignment",
"unspecified-encoding",
Expand Down
2 changes: 1 addition & 1 deletion qiskit/transpiler/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def check_obj_params(parameters, obj):
if qargs in self._gate_map[op_name]:
return True
if self._gate_map[op_name] is None or None in self._gate_map[op_name]:
return self._gate_name_map[op_name].num_qubits == len(qargs) and all(
return obj.num_qubits == len(qargs) and all(
x < self.num_qubits for x in qargs
)
return False
Expand Down

0 comments on commit 48709af

Please sign in to comment.