Skip to content

Commit

Permalink
Black linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
canismarko committed Nov 22, 2024
1 parent fc165c9 commit 16760e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ophydregistry/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,9 @@ def register(
log.debug(f"Registering {name}")
# Check if this device was previously registered with a
# different name
old_keys = [key for key, val in self._objects_by_name.items() if val is component]
old_keys = [
key for key, val in self._objects_by_name.items() if val is component
]
for old_key in old_keys:
del self._objects_by_name[old_key]
# Register by name
Expand Down

0 comments on commit 16760e0

Please sign in to comment.