docs: Upgrade upgrading guide by janbuchar · Pull Request #278 · apify/apify-sdk-python
labels
Sep 18, 2024| - `Actor.start`, `Actor.call`, `Actor.start_task`, `Actor.set_status_message` and `Actor.abort` return instances of the `ActorRun` model instead of an untyped `dict`. | ||
| - Upon entering the context manager (`async with Actor`), the `Actor` puts the default logging configuration in place. This can be disabled using the `configure_logging` parameter. | ||
| - The `config` parameter of `Actor` has been renamed to `configuration`. | ||
| - Event handlers registered via `Actor.on` will now receive Pydantic objects instead of untyped dicts. For example, where you would do `event['isMigrating']`, you should now use `event.is_migrating` |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is intentionally vague - maybe we should expose the event models somehow so that we can link them from here. Currently, they are internal members of Crawlee.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just 2 comments
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, one small note
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(i dont have any additional comments)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters