fix: add type annotations to PermissionBits
This commit is contained in:
@@ -9,9 +9,9 @@ from pydantic import BaseModel, ConfigDict
|
|||||||
|
|
||||||
|
|
||||||
class PermissionBits:
|
class PermissionBits:
|
||||||
VIEW = 1 # 001
|
VIEW: int = 1 # 001
|
||||||
INVITE = 2 # 010
|
INVITE: int = 2 # 010
|
||||||
EDIT = 4 # 100
|
EDIT: int = 4 # 100
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def encode(cls, view: bool, edit: bool, invite: bool) -> int:
|
def encode(cls, view: bool, edit: bool, invite: bool) -> int:
|
||||||
|
|||||||
Reference in New Issue
Block a user