Skip to content

Commit 63a7172

Browse files
authored
docs: Small docs fixes (#192)
After we've split off `apify_shared`, we forgot to update the consts imports in the docs. This fixes it. Also fixes one typo with `Actor.off()`.
1 parent 2ff299b commit 63a7172

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/03-concepts/01-actor-lifecycle.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ There is also the [`Actor.fail()`](../../reference/class/Actor#fail) method, whi
2424

2525
```python title="src/main.py"
2626
from apify import Actor
27-
from apify.consts import ActorExitCodes
27+
from apify_shared.consts import ActorExitCodes
2828

2929
async def main():
3030
await Actor.init()

docs/03-concepts/04-actor-events.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ During its runtime, the Actor receives Actor events sent by the Apify platform o
7171
## Adding handlers to events
7272

7373
To add handlers to these events, you use the [`Actor.on()`](../../reference/class/Actor#on) method,
74-
and to remove them, you use the [`Actor.on()`](../../reference/class/Actor#off) method.
74+
and to remove them, you use the [`Actor.off()`](../../reference/class/Actor#off) method.
7575

7676
```python title="src/main.py"
7777
import asyncio
7878
from apify import Actor
79-
from apify.consts import ActorEventTypes
79+
from apify_shared.consts import ActorEventTypes
8080

8181
async def main():
8282
async with Actor:

docs/03-concepts/11-configuration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This will cause the Actor to persist its state every 10 seconds:
2222

2323
```python title="src/main.py"
2424
from apify import Actor
25-
from apify.consts import ActorEventTypes
25+
from apify_shared.consts import ActorEventTypes
2626

2727
async def main():
2828
global_config = Configuration.get_global_configuration()

0 commit comments

Comments
 (0)