Skip to content

Commit afa7768

Browse files
committed
Docstring change
1 parent 2854546 commit afa7768

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

temporalio/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7404,9 +7404,11 @@ def name(self) -> str:
74047404
def init_client_plugin(self, next: Plugin) -> None:
74057405
"""Initialize this plugin in the plugin chain.
74067406
7407-
This method sets up the chain of responsibility pattern by storing a reference
7407+
This method sets up the chain of responsibility pattern by providing a reference
74087408
to the next plugin in the chain. It is called during client creation to build
74097409
the plugin chain. Note, this may be called twice in the case of :py:meth:`connect`.
7410+
Implementations should store this reference and call the corresponding method
7411+
of the next plugin on method calls.
74107412
74117413
Args:
74127414
next: The next plugin in the chain to delegate to.

temporalio/worker/_plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ def name(self) -> str:
3838
def init_worker_plugin(self, next: Plugin) -> None:
3939
"""Initialize this plugin in the plugin chain.
4040
41-
This method sets up the chain of responsibility pattern by storing a reference
41+
This method sets up the chain of responsibility pattern by providing a reference
4242
to the next plugin in the chain. It is called during worker creation to build
43-
the plugin chain.
43+
the plugin chain. Implementations should store this reference and call the corresponding method
44+
of the next plugin on method calls.
4445
4546
Args:
4647
next: The next plugin in the chain to delegate to.

0 commit comments

Comments
 (0)