From 0bca80e0ae06e728bada6b7fcf689ea90ca3a115 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Tue, 24 Oct 2023 23:30:08 +0000 Subject: [PATCH] docs: improve to dictionary example --- README.md | 2 +- requirements-dev.lock | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 12a04b7f..a589fa8f 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Functionality between the synchronous and asynchronous clients is otherwise iden ## Using types -Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typing.html#typing.TypedDict). Responses are [Pydantic models](https://docs.pydantic.dev), which provide helper methods for things like serializing back into JSON ([v1](https://docs.pydantic.dev/1.10/usage/models/), [v2](https://docs.pydantic.dev/latest/usage/serialization/)). To get a dictionary, call `dict(model)`. +Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typing.html#typing.TypedDict). Responses are [Pydantic models](https://docs.pydantic.dev), which provide helper methods for things like serializing back into JSON ([v1](https://docs.pydantic.dev/1.10/usage/models/), [v2](https://docs.pydantic.dev/latest/usage/serialization/)). To get a dictionary, call `model.model_dump()`. Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`. diff --git a/requirements-dev.lock b/requirements-dev.lock index 7e517132..8d5e2cfd 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -41,7 +41,6 @@ pyright==1.1.332 pytest==7.1.1 pytest-asyncio==0.21.1 python-dateutil==2.8.2 -pytz==2023.3.post1 respx==0.19.2 rfc3986==1.5.0 ruff==0.0.282