Skip to content

Commit 1733b42

Browse files
Update daprdocs/content/en/python-sdk-docs/python-actor.md
Co-authored-by: Elena Kolevska <[email protected]> Signed-off-by: Lorenzo Curcio <[email protected]>
1 parent b0650a6 commit 1733b42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

daprdocs/content/en/python-sdk-docs/python-actor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ result = await mock_actor.recieve_reminder(name, state, due_time, period, _ttl)
9999

100100
### Usage and Limitations
101101

102-
**The \_on\_activate method will not be called automatically the way it is when Dapr initializes a new Actor instance. You should call it manually as needed as part of your tests.**
102+
**The `_on_activate` method will not be called automatically the way it is when Dapr initializes a new Actor instance. You should call it manually as needed as part of your tests.**
103103

104-
The \_\_init\_\_, register_timer, unregister_timer, register_reminder, unregister_reminder methods are all overwritten by the MockActor class that gets applied as a mixin via create_mock_actor. If your actor itself overwrites these methods, those modifications will themselves be overwritten and the actor will likely not behave as you expect.
104+
The `__init__`, `register_timer`, `unregister_timer`, `register_reminder`, `unregister_reminder` methods are all overwritten by the MockActor class that gets applied as a mixin via `create_mock_actor`. If your actor itself overwrites these methods, those modifications will themselves be overwritten and the actor will likely not behave as you expect.
105105

106-
*note: \_\_init\_\_ is a special case where you are expected to define it as*
106+
*note: `__init__` is a special case where you are expected to define it as*
107107
```
108108
def __init__(self, ctx, actor_id):
109109
super().__init__(ctx, actor_id)

0 commit comments

Comments
 (0)