Skip to content

Commit 02c8c08

Browse files
committed
Fix CI failures for python 3.9
1 parent b14361b commit 02c8c08

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jupyter_rtc_core/websockets/clients.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from __future__ import annotations
88
from datetime import timedelta, timezone, datetime
99
from logging import Logger
10-
from typing import TYPE_CHECKING
10+
from typing import Optional, TYPE_CHECKING
1111
import uuid
1212
import asyncio
1313

@@ -91,7 +91,7 @@ def __init__(self, *, room_id: str, log: Logger, loop: asyncio.AbstractEventLoop
9191
self.desynced_timeout_seconds = desynced_timeout_seconds
9292
self._stopped = False
9393

94-
def add(self, websocket: WebSocketHandler) -> str | None:
94+
def add(self, websocket: WebSocketHandler) -> Optional[str]:
9595
"""
9696
Adds a new Websocket as a client to the group.
9797

jupyter_rtc_core/websockets/yroom_ws.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22
from tornado.httpclient import HTTPError
33
from tornado.websocket import WebSocketHandler
4-
from typing import TYPE_CHECKING
4+
from typing import Optional, TYPE_CHECKING
55
import asyncio
66
from ..rooms import YRoomManager
77
import logging
@@ -14,7 +14,7 @@
1414
class YRoomWebsocket(WebSocketHandler):
1515
yroom: YRoom
1616
room_id: str
17-
client_id: str | None
17+
client_id: Optional[str]
1818
# TODO: change this. we should pass `self.log` from our
1919
# `ExtensionApp` to log messages w/ "RtcCoreExtension" prefix
2020
log = logging.Logger("TEMP")

0 commit comments

Comments
 (0)