You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,22 @@ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typ
87
87
88
88
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`.
89
89
90
+
## Nested params
91
+
92
+
Nested parameters are dictionaries, typed using `TypedDict`, for example:
93
+
94
+
```python
95
+
from kernel import Kernel
96
+
97
+
client = Kernel()
98
+
99
+
browser = client.browsers.create(
100
+
invocation_id="ckqwer3o20000jb9s7abcdef",
101
+
persistence={"id": "my-shared-browser"},
102
+
)
103
+
print(browser.persistence)
104
+
```
105
+
90
106
## File uploads
91
107
92
108
Request parameters that correspond to file uploads can be passed as `bytes`, or a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.
0 commit comments