Skip to content

Commit c1fe260

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8f70b9f commit c1fe260

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

pycrdt_websocket/yroom.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
create_task_group,
1515
)
1616
from anyio.abc import TaskGroup, TaskStatus
17-
from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
1817
from pycrdt import Doc, Subscription
1918

2019
from .awareness import Awareness
@@ -59,20 +58,20 @@ def __init__(
5958
returns True if the exception was handled.
6059
log: An optional logger.
6160
"""
62-
self.ydoc : Doc = Doc()
61+
self.ydoc: Doc = Doc()
6362
self.awareness = Awareness(self.ydoc)
64-
self.ready_event : Event = Event()
63+
self.ready_event: Event = Event()
6564
self.ready = ready
66-
self.ystore : BaseYStore | None = ystore
65+
self.ystore: BaseYStore | None = ystore
6766
self.log = log or getLogger(__name__)
68-
self.clients : list = []
69-
self._on_message : Callable[[bytes], Awaitable[bool] | bool] | None = None
67+
self.clients: list = []
68+
self._on_message: Callable[[bytes], Awaitable[bool] | bool] | None = None
7069
self.exception_handler = exception_handler
71-
self._stopped : Event = Event()
70+
self._stopped: Event = Event()
7271
self._update_send_stream, self._update_receive_stream = create_memory_object_stream(
73-
max_buffer_size=0
72+
max_buffer_size=0
7473
)
75-
self._task_group : TaskGroup | None = None
74+
self._task_group: TaskGroup | None = None
7675
self._started: Event | None = None
7776
self.__start_lock: Lock | None = None
7877
self._subscription: Subscription | None = None

0 commit comments

Comments
 (0)