You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API of Yjs for event lists an attribute transaction to events. That attribute is defined in Rust but not accessible in Python as not listed in the slots.
Reproduce
In [1]: from pycrdt import Array, Doc, Map, Text
In [2]: text = Text()
...: array = Array()
...: map_ = Map()
...: Doc(
...: {
...: "text": text,
...: "array": array,
...: "map": map_,
...: }
...: )
...: events = []
In [3]: def callback(event):
...: print(event)
...: print(event.transaction)
In [4]: sub0 = text.observe(callback) # noqa: F841
...: sub1 = array.observe(callback) # noqa: F841
...: sub2 = map_.observe(callback) # noqa: F841
...: with text.doc.transaction():
...: text += "hello"
...: text += " world"
...: array.append(1)
...: map_["foo"] = "bar"
This will failed.
Expected behavior
No failure
Context
Version 0.10.9
The text was updated successfully, but these errors were encountered:
Description
The API of Yjs for event lists an attribute
transaction
to events. That attribute is defined in Rust but not accessible in Python as not listed in the slots.Reproduce
This will failed.
Expected behavior
No failure
Context
Version 0.10.9
The text was updated successfully, but these errors were encountered: