Skip to content

Commit e7051f9

Browse files
committed
better types
1 parent fe0e3e2 commit e7051f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/apify_client/clients/resource_clients/actor_collection.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import TYPE_CHECKING, Any
3+
from typing import TYPE_CHECKING, Any, Literal
44

55
from apify_shared.utils import filter_out_none_values_recursively, ignore_docs
66

@@ -26,7 +26,7 @@ def list(
2626
limit: int | None = None,
2727
offset: int | None = None,
2828
desc: bool | None = None,
29-
sort_by: str | None = None,
29+
sort_by: Literal["createdAt", "lastRunStartedAt"] | None = "createdAt",
3030
) -> ListPage[dict]:
3131
"""List the Actors the user has created or used.
3232
@@ -37,6 +37,7 @@ def list(
3737
limit: How many Actors to list.
3838
offset: What Actor to include as first when retrieving the list.
3939
desc: Whether to sort the Actors in descending order based on their creation date.
40+
sort_by: Field to sort the results by. Allowed values are "createdAt" and "lastRunStartedAt".
4041
4142
Returns:
4243
The list of available Actors matching the specified filters.

0 commit comments

Comments
 (0)