From 85bdfadec84480ea2506d40fadfc17ef4b48b95f Mon Sep 17 00:00:00 2001 From: Ian Schneider Date: Tue, 17 Sep 2024 10:16:17 -0600 Subject: [PATCH 1/2] pin mkdocs_autorefs to compatible version fixes an error in mkdocs_autorefs/plugin.py, line 77: TypeError: type 'BasePlugin' is not subscriptable --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c8a8c29e..a7c8294f 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,8 @@ 'mkdocs==1.3', 'mkdocs-click==0.7.0', 'mkdocs-material==8.2.11', - 'mkdocstrings==0.18.1' + 'mkdocstrings==0.18.1', + 'mkdocs_autorefs==1.0.1', ] setup( From 9284a5fcb843d3c51dd8596c8fac6b5c872d544c Mon Sep 17 00:00:00 2001 From: Steve Hillier Date: Fri, 13 Sep 2024 15:49:32 -0700 Subject: [PATCH 2/2] fix async search example in docs * also fix orders link --- docs/get-started/upgrading.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/get-started/upgrading.md b/docs/get-started/upgrading.md index 8a892589..86576e28 100644 --- a/docs/get-started/upgrading.md +++ b/docs/get-started/upgrading.md @@ -62,7 +62,7 @@ async def do_search(): date_filter = filters.date_range_filter('acquired', gte=datetime.fromisoformat("2022-11-18"), lte=datetime.fromisoformat("2022-11-21")) cloud_filter = filters.range_filter('cloud_cover', lte=0.1) download_filter = filters.permission_filter() - return [item async for item in client.search(["PSScene"], filters.and_filter([date_filter, cloud_filter, download_filter]))] + return [item async for item in client.search(["PSScene"], filters.and_filter([date_filter, cloud_filter, download_filter]))] items = asyncio.run(do_search()) ``` @@ -94,4 +94,4 @@ async with Session() as session: The Orders API capabilities in V1 were quite primitive, but those that did exist have been retained in much the same form; `ClientV1().create_order` becomes `OrdersClient(session).create_order`. (As with the `DataClient`, you must also use `async` and `Session` with `OrdersClient`.) -Additionally, there is now also an order builder in `planet.order_request`, similar to the preexisting search filter builder. For more details on this, refer to the [Creating an Order](../../python/sdk-guide/#creating-an-order). +Additionally, there is now also an order builder in `planet.order_request`, similar to the preexisting search filter builder. For more details on this, refer to the [Creating an Order](../../python/sdk-guide/#create-an-order).