Files
2021-10-17 02:47:40 +01:00

20 lines
302 B
Python
Executable File

from __future__ import annotations
from typing import TypedDict
__all__ = (
"Permission",
"Role",
)
Permission = tuple[int, int]
class _RoleOptional(TypedDict, total=False):
colour: str
hoist: bool
rank: int
class Role(_RoleOptional):
name: str
permissions: Permission