Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardusrendy committed Apr 25, 2024
1 parent 09319b8 commit c1fb973
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions alab_management/device_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def _raise(self, *args, **kwargs) -> NoReturn: # pylint: disable=no-self-use

__str__ = __repr__

__len__ = (
__getattr__
) = __getitem__ = __add__ = __sub__ = __eq__ = __lt__ = __gt__ = _raise
__len__ = __getattr__ = __getitem__ = __add__ = __sub__ = __eq__ = __lt__ = (
__gt__
) = _raise

def __init__(self, name: str, devices_client: "DevicesClient"):
self._name = name
Expand Down
6 changes: 3 additions & 3 deletions alab_management/scripts/launch_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def launch_lab(host, port, debug):
task_launcher_thread = Thread(target=launch_task_manager)
device_manager_thread = Thread(target=launch_device_manager)

dashboard_thread.daemon = (
experiment_manager_thread.daemon
) = task_launcher_thread.daemon = device_manager_thread.daemon = True
dashboard_thread.daemon = experiment_manager_thread.daemon = (
task_launcher_thread.daemon
) = device_manager_thread.daemon = True

dashboard_thread.start()
device_manager_thread.start()
Expand Down
2 changes: 1 addition & 1 deletion alab_management/user_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def retrieve_user_input(self, request_id: ObjectId) -> str:
)
status = UserRequestStatus(request["status"])
time.sleep(0.5)
except:
except: # noqa: E722
self._input_collection.update_one(
{"_id": request_id}, {"$set": {"status": UserRequestStatus.ERROR.name}}
)
Expand Down

0 comments on commit c1fb973

Please sign in to comment.