8000 Updated formatting · TheCompuGuru/botbuilder-python@bef0578 · GitHub
[go: up one dir, main page]

Skip to content

Commit bef0578

Browse files
authored
Updated formatting
1 parent a136b9a commit bef0578

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_turn_result.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
class DialogTurnResult:
77
"""
88
Result returned to the caller of one of the various stack manipulation methods.
9+
10+
..remarks:
11+
Use :class:`DialogContext.end_dialogAsync()` to end a :class:`Dialog` and
12+
return a result to the calling context.
913
"""
1014
def __init__(self, status: DialogTurnStatus, result: object = None):
1115
"""
@@ -19,25 +23,25 @@ def __init__(self, status: DialogTurnStatus, result: object = None):
1923

2024
@property
2125
def status(self):
22-
"""
23-
Gets or sets the current status of the stack.
24-
25-
:return self._status:
26-
:rtype self._status: :class:`DialogTurnStatus`
26+
"""
27+
Gets or sets the current status of the stack.
2728
28-
"""
29+
:return self._status:
30+
:rtype self._status: :class:`DialogTurnStatus`
31+
"""
2932
return self._status
33+
34+
@property
35+
def result(self):
36+
"""
37+
Final result returned by a dialog that just completed.
3038
31-
"""
32-
Final result returned by a dialog that just completed.
33-
..remarks:
34-
This will only be populated in certain cases:
35-
- The bot calls `DialogContext.begin_dialog()` to start a new dialog and the dialog ends immediately.
36-
- The bot calls `DialogContext.continue_dialog()` and a dialog that was active ends.
39+
..remarks:
40+
This will only be populated in certain cases:
41+
- The bot calls `DialogContext.begin_dialog()` to start a new dialog and the dialog ends immediately.
42+
- The bot calls `DialogContext.continue_dialog()` and a dialog that was active ends.
3743
3844
:return self._result:
3945
:rtype self._result: object
4046
"""
41-
@property
42-
def result(self):
4347
return self._result

0 commit comments

Comments
 (0)
0