Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 534f88e

Browse files
authored
Merge pull request #16 from dandavison/python-signal-edits
Two small edits to signals and queries documentation
2 parents 26f31a6 + 37481c6 commit 534f88e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

query_your_workflow/wf_query_dacx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
**Customize names**
99
10-
You can have a name parameter to customize the Query's name, otherwise it defaults to the unqualified method `__name__`.
10+
You can have a name parameter to customize the Query's name, otherwise it defaults to the name of the Query method.
1111
1212
:::note
1313

signal_your_workflow/wf_signal_dacx.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
- The arguments must be serializable.
1111
To define a Signal, set the Signal decorator [`@workflow.signal`](https://python.temporal.io/temporalio.workflow.html#signal) on the Signal function inside your Workflow.
1212
13-
**Customize name**
14-
1513
Non-dynamic methods can only have positional arguments.
1614
Temporal suggests taking a single argument that is an object or data class of fields that can be added to as needed.
1715
1816
Return values from Signal methods are ignored.
1917
20-
You can have a name parameter to customize the Signal's name, otherwise it defaults to the unqualified method `__name__`.
18+
**Customize names**
19+
20+
You can have a name parameter to customize the Signal's name, otherwise it defaults to the name of the Signal method.
2121
dacx"""
2222

2323

0 commit comments

Comments
 (0)