From 62500160ae7544f89018eaa3e8e90018daa60c66 Mon Sep 17 00:00:00 2001 From: qzl Date: Sat, 28 Feb 2026 13:26:20 +0800 Subject: [PATCH] fix: add type annotations to PermissionBits --- backend/src/v1/inbox_messages/schemas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/v1/inbox_messages/schemas.py b/backend/src/v1/inbox_messages/schemas.py index a498703..8cd6935 100644 --- a/backend/src/v1/inbox_messages/schemas.py +++ b/backend/src/v1/inbox_messages/schemas.py @@ -9,9 +9,9 @@ from pydantic import BaseModel, ConfigDict class PermissionBits: - VIEW = 1 # 001 - INVITE = 2 # 010 - EDIT = 4 # 100 + VIEW: int = 1 # 001 + INVITE: int = 2 # 010 + EDIT: int = 4 # 100 @classmethod def encode(cls, view: bool, edit: bool, invite: bool) -> int: