Skip to content

Commit 098d453

Browse files
docs: improve to dictionary example (#151)
1 parent 3566fad commit 098d453

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Functionality between the synchronous and asynchronous clients is otherwise iden
6060

6161
## Using types
6262

63-
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)`.
63+
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()`.
6464

6565
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`.
6666

requirements-dev.lock

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ pyright==1.1.332
4141
pytest==7.1.1
4242
pytest-asyncio==0.21.1
4343
python-dateutil==2.8.2
44-
pytz==2023.3.post1
4544
respx==0.19.2
4645
rfc3986==1.5.0
4746
ruff==0.0.282

0 commit comments

Comments
 (0)