<filename>pyauth/user.py<gh_stars>0
from typing import List


class User:
    def __init__(self, name: str, roles: List[str] = []) -> None:
        self.name = name
        self.roles = set(roles)

    def get_roles(self) -> List[str]:
        return self.roles

<filename>pyauth/user.py<gh_stars>0
from typing import List


class User:
    def __init__(self, name: str, roles: List[str] = []) -> None:
        self.name = name
        self.roles = set(roles)

    def get_roles(self) -> List[str]:
        return self.roles
