from .mixins.clientbase import ClientBase


class Client(ClientBase):
    def __init__(self, key: str, async_mode=True):
        super().__init__(key)
        if async_mode:
            self.get_user = self._get_user
        elif not async_mode:
            self.get_user = self._sync_get_user

from .mixins.clientbase import ClientBase


class Client(ClientBase):
    def __init__(self, key: str, async_mode=True):
        super().__init__(key)
        if async_mode:
            self.get_user = self._get_user
        elif not async_mode:
            self.get_user = self._sync_get_user
