Skip to content

Commit

Permalink
Fix possibly undefined _subscriptions (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart authored Mar 18, 2024
1 parent 71d5002 commit 8a80601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pycrdt/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def __init__(
_integrated: Any = None,
) -> None:
self._type_name = self.__class__.__name__.lower()
self._subscriptions = []
# private API
if _integrated is not None:
self._doc = _doc
Expand All @@ -66,7 +67,6 @@ def __init__(
self._doc = None
self._prelim = init
self._integrated = None
self._subscriptions = []

@abstractmethod
def to_py(self) -> Any: ...
Expand Down

0 comments on commit 8a80601

Please sign in to comment.