Skip to content

Commit 317e72c

Browse files
chore(internal): codegen related update (#70)
1 parent 69a6bde commit 317e72c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,21 @@ for environment in first_page.environments:
136136
# Remove `await` for non-async usage.
137137
```
138138

139+
## Nested params
140+
141+
Nested parameters are dictionaries, typed using `TypedDict`, for example:
142+
143+
```python
144+
from gitpod import Gitpod
145+
146+
client = Gitpod()
147+
148+
page = client.accounts.list_login_providers(
149+
filter={"invite_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"},
150+
)
151+
print(page.login_providers)
152+
```
153+
139154
## Handling errors
140155

141156
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `gitpod.APIConnectionError` is raised.

scripts/test

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ else
5252
echo
5353
fi
5454

55+
export DEFER_PYDANTIC_BUILD=false
56+
5557
echo "==> Running tests"
5658
rye run pytest "$@"
5759

0 commit comments

Comments
 (0)