diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 283d703..245263d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/python/pycrdt/_sync.py b/python/pycrdt/_sync.py index 79939ef..24a8d53 100644 --- a/python/pycrdt/_sync.py +++ b/python/pycrdt/_sync.py @@ -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): @@ -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: