Skip to content

Commit

Permalink
Formatting: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
raynelfss committed Aug 1, 2024
1 parent fc37ddb commit 71eb7b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qiskit/transpiler/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
from qiskit.circuit.gate import Gate
from qiskit.circuit.library.standard_gates import get_standard_gate_name_mapping
from qiskit.pulse.instruction_schedule_map import InstructionScheduleMap
from qiskit.pulse.calibration_entries import CalibrationEntry, ScheduleDef
from qiskit.pulse.calibration_entries import CalibrationEntry
from qiskit.pulse.schedule import Schedule, ScheduleBlock
from qiskit.transpiler.coupling import CouplingMap
from qiskit.transpiler.exceptions import TranspilerError
Expand Down Expand Up @@ -456,7 +456,9 @@ def update_from_instruction_schedule_map(self, inst_map, inst_name_map=None, err
continue
try:
# Update gate error if provided.
props.error = error_dict[inst_name][qargs]
props.error = error_dict[ # pylint: disable=attribute-defined-outside-init
inst_name
][qargs]
except (KeyError, TypeError):
pass
out_props[qargs] = props
Expand Down

0 comments on commit 71eb7b4

Please sign in to comment.