Skip to content

Commit 943f174

Browse files
committed
better wording
1 parent 9d62416 commit 943f174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/04_upgrading/upgrading_to_v3.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Run(defaultDatasetId='abc') # camelCase API alias
6666

6767
Not every method returns a Pydantic model. Methods whose payloads are user-defined or inherently unstructured still return plain types:
6868

69-
- <ApiLink to="class/DatasetClient#list_items">`DatasetClient.list_items()`</ApiLink> returns `DatasetItemsPage`, a dataclass whose `items` field is `list[dict[str, Any]]`, because dataset items are arbitrary JSON.
69+
- <ApiLink to="class/DatasetClient#list_items">`DatasetClient.list_items()`</ApiLink> returns `DatasetItemsPage`, a dataclass whose `items` field is `list[dict[str, Any]]`, because the structure of dataset items is defined by the [Actor output schema](https://docs.apify.com/platform/actors/development/actor-definition/output-schema), which the API Client or SDK has no knowledge of.
7070
- <ApiLink to="class/KeyValueStoreClient#get_record">`KeyValueStoreClient.get_record()`</ApiLink> returns a `dict` with `key`, `value`, and `content_type` keys.
7171

7272
### Pydantic models as method parameters

0 commit comments

Comments
 (0)