Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 14, 2024
1 parent 0bedab7 commit 69801b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
10 changes: 2 additions & 8 deletions src/tqdm_publisher/_demo/_demo_command_line_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,8 @@
CLIENT_PORT = 1234

DEMOS = {
"single_demo": dict(
subpath="_single_bar",
server=run_single_bar_demo
),
"multiple_demo": dict(
subpath="_multiple",
server=run_multiple_bar_demo
)
"single_demo": dict(subpath="_single_bar", server=run_single_bar_demo),
"multiple_demo": dict(subpath="_multiple", server=run_multiple_bar_demo),
# "parallel": "_parallel",
}

Expand Down
3 changes: 1 addition & 2 deletions src/tqdm_publisher/_demo/_single_bar/_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ async def handler(websocket: websockets.WebSocketServerProtocol) -> None:
# On each update of the progress bar, send this update to the requesting client
kwargs=dict(
progress_callback=lambda id, format_dict: send_message_to_client(
websocket=websocket,
message=dict(id=id, format_dict=format_dict)
websocket=websocket, message=dict(id=id, format_dict=format_dict)
)
),
)
Expand Down

0 comments on commit 69801b7

Please sign in to comment.