Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Oct 10, 2024
1 parent 9eed731 commit a6aeb86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from jupyter_server.base.handlers import APIHandler, JupyterHandler
from jupyter_server.utils import ensure_async
from jupyter_ydoc import ydocs as YDOCS
from pycrdt import Doc, UndoManager, YMessageType, write_var_uint
from pycrdt import Doc, UndoManager, write_var_uint
from pycrdt_websocket.websocket_server import YRoom
from pycrdt_websocket.ystore import BaseYStore
from tornado import web
Expand Down
4 changes: 2 additions & 2 deletions projects/jupyter-server-ydoc/jupyter_server_ydoc/rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ async def _maybe_save_document(self, saving_document: asyncio.Task | None) -> No
self.log.error(msg, exc_info=e)
self._emit(LogLevel.ERROR, None, msg)

def _on_awareness_change(self, type: str, changes: tuple[dict[str, Any], Any]):
def _on_awareness_change(self, type: str, changes: tuple[dict[str, Any], Any]) -> None:
if type != "change":
return
added_users = changes[0]["added"]
removed_users = changes[0]["removed"]
for i, user in enumerate(added_users):
for _, user in enumerate(added_users):
u = self.awareness.states[user]
if "user" in u:
name = u["user"]["name"]
Expand Down

0 comments on commit a6aeb86

Please sign in to comment.