From 5c4449b6ca3f283ce6b360ced023cb0a222f4ac2 Mon Sep 17 00:00:00 2001 From: kraktus <56031107+kraktus@users.noreply.github.com> Date: Sun, 18 Jul 2021 23:26:21 +0200 Subject: [PATCH] fix `account` endpoint examples --- lichess_client/endpoints/account.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lichess_client/endpoints/account.py b/lichess_client/endpoints/account.py index 1655d2b..688b06f 100644 --- a/lichess_client/endpoints/account.py +++ b/lichess_client/endpoints/account.py @@ -28,7 +28,7 @@ async def get_my_profile(self) -> 'Response': ------- >>> from lichess_client import APIClient >>> client = APIClient(token='...') - >>> response = client.account.get_my_profile() + >>> response = await client.account.get_my_profile() """ headers = { 'Content-Type': 'application/json' @@ -48,7 +48,7 @@ async def get_my_email_address(self) -> 'Response': ------- >>> from lichess_client import APIClient >>> client = APIClient(token='...') - >>> response = client.account.get_my_email_address() + >>> response = await client.account.get_my_email_address() """ headers = { 'Content-Type': 'application/json' @@ -68,7 +68,7 @@ async def get_my_preferences(self) -> 'Response': ------- >>> from lichess_client import APIClient >>> client = APIClient(token='...') - >>> response = client.account.get_my_preferences() + >>> response = await client.account.get_my_preferences() """ headers = { 'Content-Type': 'application/json' @@ -88,7 +88,7 @@ async def get_my_kid_mode_status(self) -> 'Response': ------- >>> from lichess_client import APIClient >>> client = APIClient(token='...') - >>> response = client.account.get_my_kid_mode_status() + >>> response = await client.account.get_my_kid_mode_status() """ headers = { 'Content-Type': 'application/json' @@ -113,7 +113,7 @@ async def set_my_kid_mode_status(self, *, turned_on: bool) -> 'Response': ------- >>> from lichess_client import APIClient >>> client = APIClient(token='...') - >>> response = client.account.set_my_kid_mode_status()() + >>> response = await client.account.set_my_kid_mode_status() """ headers = { 'Content-Type': 'application/json'