Skip to content

Commit

Permalink
changed parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
ZohebShaikh committed Dec 10, 2024
1 parent c94a379 commit 74c5d8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blueapi/core/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def is_simulated_device(name, factory, **kwargs):
mock_flag = kwargs.get("mock", kwargs.get("fake_with_ophyd_sim", False))
return device is not None and (
isinstance(factory, DeviceInitializationController)
and factory._mock # noqa: SLF001
or (mock_flag and isinstance(device, OphydV1Device | OphydV2Device))
and (factory._mock or mock_flag) # noqa: SLF001
and isinstance(device, OphydV1Device | OphydV2Device)
)

sim_devices = {
Expand Down

0 comments on commit 74c5d8e

Please sign in to comment.