Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
d-perl committed Jun 18, 2024
1 parent 71b5ef9 commit 5c7416e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ophyd/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 5c7416e

Please sign in to comment.