Skip to content

Commit

Permalink
Fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Sep 26, 2023
1 parent b5748a2 commit 1bc77c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/services/events/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self, *args, **kwargs):
"""Get an event socket."""
self.pre_get()
res = super().get(*args, **kwargs)
if res:
if res is not None:
await res

async def event_listener(self, logger: EventLogger, schema_id: str, data: dict) -> None:
Expand Down
2 changes: 2 additions & 0 deletions jupyter_server/services/kernels/connection/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ class ZMQChannelsWebsocketConnection(BaseKernelWebsocketConnection):
),
)

websocket_handler = Instance(KernelWebsocketHandler)

@property
def write_message(self):
"""Alias to the websocket handler's write_message method."""
Expand Down

0 comments on commit 1bc77c3

Please sign in to comment.