1
- from typing import List
2
-
3
1
from rpft .parsers .common .rowparser import ParserModel
4
2
5
3
@@ -31,7 +29,7 @@ class ConditionWithMessage(ParserModel):
31
29
32
30
33
31
class ConditionsWithMessage (ParserModel ):
34
- conditions : List [ConditionWithMessage ] = []
32
+ conditions : list [ConditionWithMessage ] = []
35
33
general_message : str = ""
36
34
37
35
@@ -61,7 +59,7 @@ class Message(ParserModel):
61
59
image : str = ""
62
60
audio : str = ""
63
61
video : str = ""
64
- attachments : List [str ] = []
62
+ attachments : list [str ] = []
65
63
66
64
67
65
class TemplateSheet :
@@ -76,7 +74,7 @@ def __init__(
76
74
self ,
77
75
flow_definitions ,
78
76
data_sheets ,
79
- templates : List [TemplateSheet ],
77
+ templates : list [TemplateSheet ],
80
78
surveys ,
81
79
):
82
80
self .flow_definitions = flow_definitions
@@ -119,7 +117,7 @@ class MCQChoice(ParserModel):
119
117
120
118
121
119
class PostProcessing (ParserModel ):
122
- assignments : List [Assignment ] = []
120
+ assignments : list [Assignment ] = []
123
121
"""
124
122
Assignments to perform via save_value rows.
125
123
"""
@@ -157,7 +155,7 @@ class SurveyQuestionModel(ParserModel):
157
155
Type of the question.
158
156
"""
159
157
160
- messages : List [Message ]
158
+ messages : list [Message ]
161
159
"""
162
160
Question text.
163
161
"""
@@ -175,7 +173,7 @@ class SurveyQuestionModel(ParserModel):
175
173
the question ID as {variable}_complete.
176
174
"""
177
175
178
- choices : List [MCQChoice ] = []
176
+ choices : list [MCQChoice ] = []
179
177
"""
180
178
MCQ specific fields.
181
179
"""
@@ -186,7 +184,7 @@ class SurveyQuestionModel(ParserModel):
186
184
configuration is used.
187
185
"""
188
186
189
- relevant : List [Condition ] = []
187
+ relevant : list [Condition ] = []
190
188
"""
191
189
Conditions required to present the question, otherwise skipped.
192
190
"""
@@ -223,7 +221,7 @@ class SurveyQuestionModel(ParserModel):
223
221
that is triggered.
224
222
"""
225
223
226
- tags : List [str ] = []
224
+ tags : list [str ] = []
227
225
"""
228
226
Tags allowing to filter questions to appear in a survey.
229
227
"""
0 commit comments