Skip to content

Commit

Permalink
Fix dict type for python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Jul 10, 2024
1 parent d4f0230 commit 21031e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyter_ydoc/ybasedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Distributed under the terms of the Modified BSD License.

from abc import ABC, abstractmethod
from typing import Any, Callable, Optional
from typing import Any, Callable, Dict, Optional

from pycrdt import Doc, Map, Subscription, UndoManager

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

_ydoc: Doc
_ystate: Map
_subscriptions: dict[Any, Subscription]
_subscriptions: Dict[Any, Subscription]
_undo_manager: UndoManager

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

0 comments on commit 21031e8

Please sign in to comment.