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
refactor: drop explicit TypeAlias annotation from generated literals
`X = Literal[...]` is already recognized as a type alias by every Python
type checker, so the `: TypeAlias` annotation adds noise without adding
any semantic value. Drop it from the postprocess-generated aliases and
from the hand-maintained `TerminalActorJobStatus`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/apify_client/_literals_generated.py
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
from __future__ importannotations
4
4
5
-
fromtypingimportLiteral, TypeAlias
5
+
fromtypingimportLiteral
6
6
7
-
ActorJobStatus: TypeAlias=Literal[
7
+
ActorJobStatus=Literal[
8
8
'READY',
9
9
'RUNNING',
10
10
'SUCCEEDED',
@@ -17,14 +17,14 @@
17
17
"""Status of an Actor job (run or build)."""
18
18
19
19
20
-
ActorPermissionLevel: TypeAlias=Literal[
20
+
ActorPermissionLevel=Literal[
21
21
'LIMITED_PERMISSIONS',
22
22
'FULL_PERMISSIONS',
23
23
]
24
24
"""Determines permissions that the Actor requires to run. For more information, see the [Actor permissions documentation](https://docs.apify.com/platform/actors/development/permissions)."""
25
25
26
26
27
-
ErrorType: TypeAlias=Literal[
27
+
ErrorType=Literal[
28
28
'3d-secure-auth-failed',
29
29
'access-right-already-exists',
30
30
'action-not-found',
@@ -418,7 +418,7 @@
418
418
"""Machine-processable error type identifier."""
419
419
420
420
421
-
GeneralAccess: TypeAlias=Literal[
421
+
GeneralAccess=Literal[
422
422
'ANYONE_WITH_ID_CAN_READ',
423
423
'ANYONE_WITH_NAME_CAN_READ',
424
424
'FOLLOW_USER_SETTING',
@@ -427,7 +427,7 @@
427
427
"""Defines the general access level for the resource."""
428
428
429
429
430
-
HttpMethod: TypeAlias=Literal[
430
+
HttpMethod=Literal[
431
431
'GET',
432
432
'HEAD',
433
433
'POST',
@@ -440,7 +440,7 @@
440
440
]
441
441
442
442
443
-
RunOrigin: TypeAlias=Literal[
443
+
RunOrigin=Literal[
444
444
'DEVELOPMENT',
445
445
'WEB',
446
446
'API',
@@ -453,13 +453,13 @@
453
453
]
454
454
455
455
456
-
SourceCodeFileFormat: TypeAlias=Literal[
456
+
SourceCodeFileFormat=Literal[
457
457
'BASE64',
458
458
'TEXT',
459
459
]
460
460
461
461
462
-
StorageOwnership: TypeAlias=Literal[
462
+
StorageOwnership=Literal[
463
463
'owned_by_me',
464
464
'shared_with_me',
465
465
]
@@ -471,23 +471,23 @@
471
471
"""Maps snake_case `StorageOwnership` values to the camelCase form expected on the API wire."""
472
472
473
473
474
-
VersionSourceType: TypeAlias=Literal[
474
+
VersionSourceType=Literal[
475
475
'SOURCE_FILES',
476
476
'GIT_REPO',
477
477
'TARBALL',
478
478
'GITHUB_GIST',
479
479
]
480
480
481
481
482
-
WebhookDispatchStatus: TypeAlias=Literal[
482
+
WebhookDispatchStatus=Literal[
483
483
'ACTIVE',
484
484
'SUCCEEDED',
485
485
'FAILED',
486
486
]
487
487
"""Status of the webhook dispatch indicating whether the HTTP request was successful."""
0 commit comments