Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelishman committed Feb 10, 2025
1 parent a45e816 commit 975769e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qiskit/transpiler/basepasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __call__(
If on transformation pass, the resulting QuantumCircuit.
If analysis pass, the input circuit.
"""
from qiskit.transpiler import PassManager # pylint: disable-cyclic-import
from qiskit.transpiler import PassManager # pylint: disable=cyclic-import

pm = PassManager([self])
# Previous versions of the `__call__` function would not construct a `PassManager`, but just
Expand Down
2 changes: 2 additions & 0 deletions qiskit/transpiler/passmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ def run(
output_name: str | None = None,
callback: Callable | None = None,
num_processes: int = None,
*,
property_set: dict[str, object] | None = None,
) -> _CircuitsT:
self._update_passmanager()
return super().run(circuits, output_name, callback, num_processes=num_processes)
Expand Down
1 change: 0 additions & 1 deletion test/python/transpiler/test_passmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ def test_override_initial_property_set(self):
"""Test that the ``property_set`` argument allows seeding the base analysis."""
input_name = "my_property"
output_name = "output_property"
assert_equal = self.assertEqual

class Analyse(AnalysisPass):
def run(self, dag):
Expand Down

0 comments on commit 975769e

Please sign in to comment.