Skip to content

Commit 8e793be

Browse files
committed
docs: apply review suggestions to v4 upgrading guide
1 parent 143133e commit 8e793be

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

docs/04_upgrading/upgrading_to_v4.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,22 @@ Support for Python 3.10 has been dropped. The Apify Python SDK v4.x now requires
1212

1313
## Keyword-only arguments
1414

15-
Secondary parameters on these methods can no longer be passed positionally.
15+
Secondary parameters in these signatures can no longer be passed positionally:
16+
- `Actor``get_value`, `push_data`, `charge`, `use_state`.
17+
- `ChargingManager``charge`.
1618

1719
```python
18-
# Before
20+
# Before (v3)
1921
value = await Actor.get_value('my-key', default_value)
2022
await Actor.push_data(data, 'my-event')
2123
await Actor.charge('my-event', 5)
2224

23-
# After
25+
# After (v4)
2426
value = await Actor.get_value('my-key', default_value=default_value)
2527
await Actor.push_data(data, charged_event_name='my-event')
2628
await Actor.charge('my-event', count=5)
2729
```
2830

29-
Affected signatures:
30-
31-
- `Actor``get_value`, `push_data`, `charge`, `use_state`.
32-
- `ChargingManager``charge`.
33-
3431
## Removal of deprecated APIs
3532

3633
Methods and arguments that had been deprecated in v3 are removed in v4.

0 commit comments

Comments
 (0)