From 5f8cb5218350a12bef5e7189f407c1ed9db302cb Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 22 Jan 2022 17:34:14 -0600 Subject: [PATCH] fix missing parens --- docs/usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage.rst b/docs/usage.rst index f13db99..0314bd8 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -13,7 +13,7 @@ Either the Client or AsyncClient can be used as a ContextManager (or Async Conte from healthchecks_io import Client, CheckCreate with Client(api_key="myapikey") as client: - check = client.create_check(CheckCreate(name="New Check", tags="tag1 tag2") + check = client.create_check(CheckCreate(name="New Check", tags="tag1 tag2")) print(check) This is probably the easiest way to use the Clients for one-off scripts. If you do not need to keep a client open for multiple requests, just use @@ -101,7 +101,7 @@ If you want to use the client in an async program, use AsyncClient instead of Cl async def main(): client = AsyncClient(api_key="myapikey") - check = await client.create_check(CheckCreate(name="New Check", tags="tag1 tag2") + check = await client.create_check(CheckCreate(name="New Check", tags="tag1 tag2")) print(check) if __name__ == "__main__":