Skip to content

Commit 1466ca2

Browse files
Fix subscription type, update pycrdt>=0.8.16 (#222)
1 parent 23ac2c5 commit 1466ca2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jupyter_ydoc/ybasedoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from abc import ABC, abstractmethod
55
from typing import Any, Callable, Dict, Optional
66

7-
from pycrdt import Doc, Map
7+
from pycrdt import Doc, Map, Subscription
88

99

1010
class YBaseDoc(ABC):
@@ -27,7 +27,7 @@ def __init__(self, ydoc: Optional[Doc] = None):
2727
else:
2828
self._ydoc = ydoc
2929
self._ystate = self._ydoc.get("state", type=Map)
30-
self._subscriptions: Dict[Any, str] = {}
30+
self._subscriptions: Dict[Any, Subscription] = {}
3131

3232
@property
3333
@abstractmethod

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ requires-python = ">=3.8"
1313
keywords = ["jupyter", "pycrdt", "yjs"]
1414
dependencies = [
1515
"importlib_metadata >=3.6; python_version<'3.10'",
16-
"pycrdt >=0.8.11,<0.9.0",
16+
"pycrdt >=0.8.16,<0.9.0",
1717
]
1818

1919
[[project.authors]]

0 commit comments

Comments
 (0)