Skip to content

Commit 5464226

Browse files
Fix dict type for python 3.8 (#253)
1 parent 023afaf commit 5464226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_ydoc/ybasedoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Distributed under the terms of the Modified BSD License.
33

44
from abc import ABC, abstractmethod
5-
from typing import Any, Callable, Optional
5+
from typing import Any, Callable, Dict, Optional
66

77
from pycrdt import Doc, Map, Subscription, UndoManager
88

@@ -17,7 +17,7 @@ class YBaseDoc(ABC):
1717

1818
_ydoc: Doc
1919
_ystate: Map
20-
_subscriptions: dict[Any, Subscription]
20+
_subscriptions: Dict[Any, Subscription]
2121
_undo_manager: UndoManager
2222

2323
def __init__(self, ydoc: Optional[Doc] = None):

0 commit comments

Comments
 (0)