@@ -66,13 +66,13 @@ class ConditionComparison(Condition):
66
66
"""Generic comparison condition that can be used to derive specific condition comparisons.
67
67
68
68
Attributes:
69
- left (ConditionValueType): The execution variable, parameter, or
70
- property to use in the comparison.
69
+ left (Union[ ConditionValueType, PrimitiveType] ): The execution variable, parameter,
70
+ property, or Python primitive value to use in the comparison.
71
71
right (Union[ConditionValueType, PrimitiveType]): The execution variable,
72
72
parameter, property, or Python primitive value to compare to.
73
73
"""
74
74
75
- left : ConditionValueType = attr .ib (default = None )
75
+ left : Union [ ConditionValueType , PrimitiveType ] = attr .ib (default = None )
76
76
right : Union [ConditionValueType , PrimitiveType ] = attr .ib (default = None )
77
77
78
78
def to_request (self ) -> RequestType :
@@ -87,12 +87,16 @@ def to_request(self) -> RequestType:
87
87
class ConditionEquals (ConditionComparison ):
88
88
"""A condition for equality comparisons."""
89
89
90
- def __init__ (self , left : ConditionValueType , right : Union [ConditionValueType , PrimitiveType ]):
90
+ def __init__ (
91
+ self ,
92
+ left : Union [ConditionValueType , PrimitiveType ],
93
+ right : Union [ConditionValueType , PrimitiveType ],
94
+ ):
91
95
"""Construct A condition for equality comparisons.
92
96
93
97
Args:
94
- left (ConditionValueType): The execution variable, parameter ,
95
- or property to use in the comparison.
98
+ left (Union[ ConditionValueType, PrimitiveType] ): The execution variable,
99
+ parameter, property, or Python primitive value to use in the comparison.
96
100
right (Union[ConditionValueType, PrimitiveType]): The execution
97
101
variable, parameter, property, or Python primitive value to compare to.
98
102
"""
@@ -103,12 +107,16 @@ def __init__(self, left: ConditionValueType, right: Union[ConditionValueType, Pr
103
107
class ConditionGreaterThan (ConditionComparison ):
104
108
"""A condition for greater than comparisons."""
105
109
106
- def __init__ (self , left : ConditionValueType , right : Union [ConditionValueType , PrimitiveType ]):
110
+ def __init__ (
111
+ self ,
112
+ left : Union [ConditionValueType , PrimitiveType ],
113
+ right : Union [ConditionValueType , PrimitiveType ],
114
+ ):
107
115
"""Construct an instance of ConditionGreaterThan for greater than comparisons.
108
116
109
117
Args:
110
- left (ConditionValueType): The execution variable, parameter ,
111
- or property to use in the comparison.
118
+ left (Union[ ConditionValueType, PrimitiveType] ): The execution variable,
119
+ parameter, property, or Python primitive value to use in the comparison.
112
120
right (Union[ConditionValueType, PrimitiveType]): The execution
113
121
variable, parameter, property, or Python primitive value to compare to.
114
122
"""
@@ -119,12 +127,16 @@ def __init__(self, left: ConditionValueType, right: Union[ConditionValueType, Pr
119
127
class ConditionGreaterThanOrEqualTo (ConditionComparison ):
120
128
"""A condition for greater than or equal to comparisons."""
121
129
122
- def __init__ (self , left : ConditionValueType , right : Union [ConditionValueType , PrimitiveType ]):
130
+ def __init__ (
131
+ self ,
132
+ left : Union [ConditionValueType , PrimitiveType ],
133
+ right : Union [ConditionValueType , PrimitiveType ],
134
+ ):
123
135
"""Construct of ConditionGreaterThanOrEqualTo for greater than or equal to comparisons.
124
136
125
137
Args:
126
- left (ConditionValueType): The execution variable, parameter ,
127
- or property to use in the comparison.
138
+ left (Union[ ConditionValueType, PrimitiveType] ): The execution variable,
139
+ parameter, property, or Python primitive value to use in the comparison.
128
140
right (Union[ConditionValueType, PrimitiveType]): The execution
129
141
variable, parameter, property, or Python primitive value to compare to.
130
142
"""
@@ -135,12 +147,16 @@ def __init__(self, left: ConditionValueType, right: Union[ConditionValueType, Pr
135
147
class ConditionLessThan (ConditionComparison ):
136
148
"""A condition for less than comparisons."""
137
149
138
- def __init__ (self , left : ConditionValueType , right : Union [ConditionValueType , PrimitiveType ]):
150
+ def __init__ (
151
+ self ,
152
+ left : Union [ConditionValueType , PrimitiveType ],
153
+ right : Union [ConditionValueType , PrimitiveType ],
154
+ ):
139
155
"""Construct an instance of ConditionLessThan for less than comparisons.
140
156
141
157
Args:
142
- left (ConditionValueType): The execution variable, parameter ,
143
- or property to use in the comparison.
158
+ left (Union[ ConditionValueType, PrimitiveType] ): The execution variable,
159
+ parameter, property, or Python primitive value to use in the comparison.
144
160
right (Union[ConditionValueType, PrimitiveType]): The execution
145
161
variable, parameter, property, or Python primitive value to compare to.
146
162
"""
@@ -151,12 +167,16 @@ def __init__(self, left: ConditionValueType, right: Union[ConditionValueType, Pr
151
167
class ConditionLessThanOrEqualTo (ConditionComparison ):
152
168
"""A condition for less than or equal to comparisons."""
153
169
154
- def __init__ (self , left : ConditionValueType , right : Union [ConditionValueType , PrimitiveType ]):
170
+ def __init__ (
171
+ self ,
172
+ left : Union [ConditionValueType , PrimitiveType ],
173
+ right : Union [ConditionValueType , PrimitiveType ],
174
+ ):
155
175
"""Construct ConditionLessThanOrEqualTo for less than or equal to comparisons.
156
176
157
177
Args:
158
- left (ConditionValueType): The execution variable, parameter ,
159
- or property to use in the comparison.
178
+ left (Union[ ConditionValueType, PrimitiveType] ): The execution variable,
179
+ parameter, property, or Python primitive value to use in the comparison.
160
180
right (Union[ConditionValueType, PrimitiveType]): The execution
161
181
variable, parameter, property, or Python primitive value to compare to.
162
182
"""
@@ -168,13 +188,15 @@ class ConditionIn(Condition):
168
188
"""A condition to check membership."""
169
189
170
190
def __init__ (
171
- self , value : ConditionValueType , in_values : List [Union [ConditionValueType , PrimitiveType ]]
191
+ self ,
192
+ value : Union [ConditionValueType , PrimitiveType ],
193
+ in_values : List [Union [ConditionValueType , PrimitiveType ]],
172
194
):
173
195
"""Construct a `ConditionIn` condition to check membership.
174
196
175
197
Args:
176
- value (ConditionValueType): The execution variable,
177
- parameter, or property to use for the in comparison .
198
+ value (Union[ ConditionValueType, PrimitiveType] ): The execution variable,
199
+ parameter, property or primitive value to check for membership .
178
200
in_values (List[Union[ConditionValueType, PrimitiveType]]): The list
179
201
of values to check for membership in.
180
202
"""
0 commit comments