Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#208)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.8.4](astral-sh/ruff-pre-commit@v0.8.3...v0.8.4)

* Remove unnecessary type annotations for IntEnum

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: David Brochart <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and davidbrochart authored Dec 25, 2024
1 parent 5e88a22 commit 7f9de2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.3
rev: v0.8.4
hooks:
- id: ruff
args: [--fix, --show-fixes]
Expand Down
10 changes: 5 additions & 5 deletions python/pycrdt/_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class YMessageType(IntEnum):
AWARENESS: A message type used for the awareness protocol.
"""

SYNC: int = 0
AWARENESS: int = 1
SYNC = 0
AWARENESS = 1


class YSyncMessageType(IntEnum):
Expand All @@ -31,9 +31,9 @@ class YSyncMessageType(IntEnum):
SYNC_UPDATE: A synchronization message type used to send document updates.
"""

SYNC_STEP1: int = 0
SYNC_STEP2: int = 1
SYNC_UPDATE: int = 2
SYNC_STEP1 = 0
SYNC_STEP2 = 1
SYNC_UPDATE = 2


def write_var_uint(num: int) -> bytes:
Expand Down

0 comments on commit 7f9de2a

Please sign in to comment.