fix: add type annotations to PermissionBits

This commit is contained in:
qzl
2026-02-28 13:26:20 +08:00
parent c22692ed1d
commit 62500160ae
+3 -3
View File
@@ -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: