Skip to content

Commit

Permalink
Add update property to TransactionEvent (#72)
Browse files Browse the repository at this point in the history
* Add update property to TransactionEvent

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
davidbrochart and pre-commit-ci[bot] authored Jan 30, 2024
1 parent cd61589 commit 622f607
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/pycrdt/_pycrdt.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ class TransactionEvent:
"""Event generated by `Doc.observe` method. Emitted during transaction commit
phase."""

@property
def update(self) -> bytes:
"""The emitted binary update"""

class SubdocsEvent:
"""Event generated by `Doc.observe_subdocs` method. Emitted during transaction commit
phase."""
Expand Down

0 comments on commit 622f607

Please sign in to comment.