From 71eb7b4446e48e4e447f9830e8acf9af78445153 Mon Sep 17 00:00:00 2001 From: Raynel Sanchez Date: Thu, 1 Aug 2024 11:19:41 -0400 Subject: [PATCH] Formatting: Fix lint --- qiskit/transpiler/target.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qiskit/transpiler/target.py b/qiskit/transpiler/target.py index 254f39c56b55..fa9f93632386 100644 --- a/qiskit/transpiler/target.py +++ b/qiskit/transpiler/target.py @@ -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 @@ -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