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 Oct 9, 2024
1 parent c34e35f commit 0165ec3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions voila/tornado/kernel_websocket_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
from typing import Any, Dict, Optional, Union

try:
from jupyter_server.services.kernels.websocket import KernelWebsocketHandler as WebsocketHandler
from jupyter_server.services.kernels.websocket import (
KernelWebsocketHandler as WebsocketHandler,
)
except ImportError:
from jupyter_server.services.kernels.handlers import ZMQChannelsHandler as WebsocketHandler

from jupyter_server.services.kernels.handlers import (
ZMQChannelsHandler as WebsocketHandler,
)


def read_header_from_binary_message(ws_msg: bytes) -> Optional[Dict]:
Expand Down

0 comments on commit 0165ec3

Please sign in to comment.