@@ -66,13 +66,13 @@ class ConditionComparison(Condition):
6666 """Generic comparison condition that can be used to derive specific condition comparisons.
6767
6868 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.
7171 right (Union[ConditionValueType, PrimitiveType]): The execution variable,
7272 parameter, property, or Python primitive value to compare to.
7373 """
7474
75- left : ConditionValueType = attr .ib (default = None )
75+ left : Union [ ConditionValueType , PrimitiveType ] = attr .ib (default = None )
7676 right : Union [ConditionValueType , PrimitiveType ] = attr .ib (default = None )
7777
7878 def to_request (self ) -> RequestType :
@@ -87,12 +87,16 @@ def to_request(self) -> RequestType:
8787class ConditionEquals (ConditionComparison ):
8888 """A condition for equality comparisons."""
8989
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+ ):
9195 """Construct A condition for equality comparisons.
9296
9397 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.
96100 right (Union[ConditionValueType, PrimitiveType]): The execution
97101 variable, parameter, property, or Python primitive value to compare to.
98102 """
@@ -103,12 +107,16 @@ def __init__(self, left: ConditionValueType, right: Union[ConditionValueType, Pr
103107class ConditionGreaterThan (ConditionComparison ):
104108 """A condition for greater than comparisons."""
105109
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+ ):
107115 """Construct an instance of ConditionGreaterThan for greater than comparisons.
108116
109117 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.
112120 right (Union[ConditionValueType, PrimitiveType]): The execution
113121 variable, parameter, property, or Python primitive value to compare to.
114122 """
@@ -119,12 +127,16 @@ def __init__(self, left: ConditionValueType, right: Union[ConditionValueType, Pr
119127class ConditionGreaterThanOrEqualTo (ConditionComparison ):
120128 """A condition for greater than or equal to comparisons."""
121129
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+ ):
123135 """Construct of ConditionGreaterThanOrEqualTo for greater than or equal to comparisons.
124136
125137 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.
128140 right (Union[ConditionValueType, PrimitiveType]): The execution
129141 variable, parameter, property, or Python primitive value to compare to.
130142 """
@@ -135,12 +147,16 @@ def __init__(self, left: ConditionValueType, right: Union[ConditionValueType, Pr
135147class ConditionLessThan (ConditionComparison ):
136148 """A condition for less than comparisons."""
137149
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+ ):
139155 """Construct an instance of ConditionLessThan for less than comparisons.
140156
141157 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.
144160 right (Union[ConditionValueType, PrimitiveType]): The execution
145161 variable, parameter, property, or Python primitive value to compare to.
146162 """
@@ -151,12 +167,16 @@ def __init__(self, left: ConditionValueType, right: Union[ConditionValueType, Pr
151167class ConditionLessThanOrEqualTo (ConditionComparison ):
152168 """A condition for less than or equal to comparisons."""
153169
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+ ):
155175 """Construct ConditionLessThanOrEqualTo for less than or equal to comparisons.
156176
157177 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.
160180 right (Union[ConditionValueType, PrimitiveType]): The execution
161181 variable, parameter, property, or Python primitive value to compare to.
162182 """
@@ -168,13 +188,15 @@ class ConditionIn(Condition):
168188 """A condition to check membership."""
169189
170190 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 ]],
172194 ):
173195 """Construct a `ConditionIn` condition to check membership.
174196
175197 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 .
178200 in_values (List[Union[ConditionValueType, PrimitiveType]]): The list
179201 of values to check for membership in.
180202 """
0 commit comments