Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 8, 2024
1 parent 5911ef8 commit e531376
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion python/pycrdt/_awareness.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from uuid import uuid4

from ._doc import Doc
from ._sync import Decoder, Encoder, YMessageType, read_message, write_var_uint
from ._sync import Decoder, Encoder


class Awareness:
Expand Down
12 changes: 6 additions & 6 deletions tests/test_awareness.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from uuid import uuid4

import pytest
from pycrdt import Awareness, Doc, Encoder, write_var_uint
from pycrdt import Awareness, Doc, Encoder

TEST_USER = {"username": str(uuid4()), "name": "Test user"}
REMOTE_CLIENT_ID = 853790970
Expand Down Expand Up @@ -56,10 +56,10 @@ def callback(topic, event):
assert awareness.get_local_state() is None

assert changes == [
('change', ({'added': [], 'updated': [awareness.client_id], 'removed': []}, 'local')),
('update', ({'added': [], 'updated': [awareness.client_id], 'removed': []}, 'local')),
('change', ({'added': [], 'updated': [], 'removed': [awareness.client_id]}, 'local')),
('update', ({'added': [], 'updated': [], 'removed': [awareness.client_id]}, 'local')),
("change", ({"added": [], "updated": [awareness.client_id], "removed": []}, "local")),
("update", ({"added": [], "updated": [awareness.client_id], "removed": []}, "local")),
("change", ({"added": [], "updated": [], "removed": [awareness.client_id]}, "local")),
("update", ({"added": [], "updated": [], "removed": [awareness.client_id]}, "local")),
]


Expand Down Expand Up @@ -307,7 +307,7 @@ def callback(topic, value):
"updated": [ydoc.client_id],
},
"local",
)
),
)


Expand Down

0 comments on commit e531376

Please sign in to comment.