From 5c7416ee15ba02769a3a7731462306895431a2d9 Mon Sep 17 00:00:00 2001 From: David Perl Date: Tue, 18 Jun 2024 11:23:14 +0100 Subject: [PATCH] fix linting --- ophyd/status.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ophyd/status.py b/ophyd/status.py index 768aaaca5..8639ba48e 100644 --- a/ophyd/status.py +++ b/ophyd/status.py @@ -90,7 +90,9 @@ def __init__(self, *, timeout=None, settle_time=0, done=None, success=None): "status_type": self.__class__.__name__, "settle_time": settle_time, } - self._trace_attributes.update({"timeout": timeout} if timeout else {"no_timeout_given": True}) + self._trace_attributes.update( + {"timeout": timeout} if timeout else {"no_timeout_given": True} + ) self._tname = None self._lock = threading.RLock() self._event = threading.Event() # state associated with done-ness @@ -696,7 +698,7 @@ def __init__(self, device, **kwargs): self._trace_attributes.update( {"device_name": device.name, "device_type": device.__class__.__name__} if device - else {"no_device_given" : True} + else {"no_device_given": True} ) self._trace_attributes["kwargs"] = json.dumps(kwargs) @@ -994,7 +996,9 @@ def __init__(self, positioner, target, *, start_ts=None, **kwargs): } ) self._trace_attributes.update( - {"positioner": repr(self.pos)} if self.pos else {"no_positioner_given": True} + {"positioner": repr(self.pos)} + if self.pos + else {"no_positioner_given": True} ) def watch(self, func):