Skip to content

Commit 0a973ba

Browse files
Merge pull request #232076 from seesharprun/cosmos-fix-python-nosql-quickstart-warning
Cosmos DB | Replaced NoSQL Python quickstart code sample `id` with `range`
2 parents c976682 + 31098e4 commit 0a973ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cosmos-db/nosql/includes/quickstart-python/connection-string-sync-async-code-create-client.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ ms.custom: include file
1919
> [!IMPORTANT]
2020
> Put the client instance in a coroutine function named `manage_cosmos`. Within the coroutine function, define the new client with the `async with` keywords. Outside of the coroutine function, use the `asyncio.run` function to execute the coroutine asynchronously.
2121
22-
:::code language="python" source="~/cosmos-db-nosql-python-samples/002-quickstart-async/app.py" range="24-26":::
22+
:::code language="python" source="~/cosmos-db-nosql-python-samples/002-quickstart-async/app.py" id="define_async_function":::
2323

24-
:::code language="python" source="~/cosmos-db-nosql-python-samples/002-quickstart-async/app.py" range="70":::
24+
:::code language="python" source="~/cosmos-db-nosql-python-samples/002-quickstart-async/app.py" id="run_async_function":::
2525

2626
---

0 commit comments

Comments
 (0)