@@ -115,6 +115,12 @@ class CombinedExpression(SQLiteNumericMixin, Expression):
115
115
rhs : Combinable
116
116
def __init__ (self , lhs : Combinable , connector : str , rhs : Combinable , output_field : Field | None = ...) -> None : ...
117
117
118
+ class DurationExpression (CombinedExpression ):
119
+ def compile (self , side : Combinable , compiler : SQLCompiler , connection : BaseDatabaseWrapper ) -> _AsSqlType : ...
120
+
121
+ class TemporalSubtraction (CombinedExpression ):
122
+ def __init__ (self , lhs : Combinable , rhs : Combinable ) -> None : ...
123
+
118
124
class F (Combinable ):
119
125
name : str
120
126
def __init__ (self , name : str ) -> None : ...
@@ -148,30 +154,24 @@ class OuterRef(F):
148
154
contains_aggregate : bool
149
155
def relabeled_clone (self : Self , relabels : Any ) -> Self : ...
150
156
151
- class Subquery (BaseExpression , Combinable ):
157
+ class Func (SQLiteNumericMixin , Expression ):
158
+ function : str
159
+ name : str
152
160
template : str
153
- query : Query
161
+ arg_joiner : str
162
+ arity : int | None
163
+ source_expressions : list [Expression ]
154
164
extra : dict [Any , Any ]
155
- def __init__ (self , queryset : Query | QuerySet , output_field : Field | None = ..., ** extra : Any ) -> None : ...
156
-
157
- class Exists (Subquery ):
158
- negated : bool
159
- def __init__ (self , queryset : Query | QuerySet , negated : bool = ..., ** kwargs : Any ) -> None : ...
160
- def __invert__ (self ) -> Exists : ...
161
-
162
- class OrderBy (Expression ):
163
- template : str
164
- nulls_first : bool
165
- nulls_last : bool
166
- descending : bool
167
- expression : Expression | F | Subquery
168
- def __init__ (
165
+ def __init__ (self , * expressions : Any , output_field : Field | None = ..., ** extra : Any ) -> None : ...
166
+ def as_sql (
169
167
self ,
170
- expression : Expression | F | Subquery ,
171
- descending : bool = ...,
172
- nulls_first : bool = ...,
173
- nulls_last : bool = ...,
174
- ) -> None : ...
168
+ compiler : SQLCompiler ,
169
+ connection : BaseDatabaseWrapper ,
170
+ function : str | None = ...,
171
+ template : str | None = ...,
172
+ arg_joiner : str | None = ...,
173
+ ** extra_context : Any ,
174
+ ) -> _AsSqlType : ...
175
175
176
176
class Value (Expression ):
177
177
value : Any
@@ -182,15 +182,25 @@ class RawSQL(Expression):
182
182
sql : str
183
183
def __init__ (self , sql : str , params : Sequence [Any ], output_field : Field | None = ...) -> None : ...
184
184
185
- class Func (SQLiteNumericMixin , Expression ):
186
- function : str
187
- name : str
188
- template : str
189
- arg_joiner : str
190
- arity : int | None
191
- source_expressions : list [Expression ]
192
- extra : dict [Any , Any ]
193
- def __init__ (self , * expressions : Any , output_field : Field | None = ..., ** extra : Any ) -> None : ...
185
+ class Star (Expression ): ...
186
+
187
+ class Col (Expression ):
188
+ target : Field
189
+ alias : str
190
+ contains_column_references : Literal [True ]
191
+ possibly_multivalued : Literal [False ]
192
+ def __init__ (self , alias : str , target : Field , output_field : Field | None = ...) -> None : ...
193
+
194
+ class Ref (Expression ):
195
+ def __init__ (self , refs : str , source : Expression ) -> None : ...
196
+
197
+ class ExpressionList (Func ):
198
+ def __init__ (self , * expressions : BaseExpression | Combinable , ** extra : Any ) -> None : ...
199
+
200
+ class OrderByList (Func ): ...
201
+
202
+ class ExpressionWrapper (Expression ):
203
+ def __init__ (self , expression : Q | Combinable , output_field : Field ) -> None : ...
194
204
195
205
class When (Expression ):
196
206
template : str
@@ -208,21 +218,30 @@ class Case(Expression):
208
218
self , * cases : Any , default : Any | None = ..., output_field : Field | None = ..., ** extra : Any
209
219
) -> None : ...
210
220
211
- class ExpressionWrapper (Expression ):
212
- def __init__ (self , expression : Q | Combinable , output_field : Field ) -> None : ...
213
-
214
- class Col (Expression ):
215
- target : Field
216
- alias : str
217
- contains_column_references : Literal [True ]
218
- possibly_multivalued : Literal [False ]
219
- def __init__ (self , alias : str , target : Field , output_field : Field | None = ...) -> None : ...
221
+ class Subquery (BaseExpression , Combinable ):
222
+ template : str
223
+ query : Query
224
+ extra : dict [Any , Any ]
225
+ def __init__ (self , queryset : Query | QuerySet , output_field : Field | None = ..., ** extra : Any ) -> None : ...
220
226
221
- class Ref (Expression ):
222
- def __init__ (self , refs : str , source : Expression ) -> None : ...
227
+ class Exists (Subquery ):
228
+ negated : bool
229
+ def __init__ (self , queryset : Query | QuerySet , negated : bool = ..., ** kwargs : Any ) -> None : ...
230
+ def __invert__ (self ) -> Exists : ...
223
231
224
- class ExpressionList (Func ):
225
- def __init__ (self , * expressions : BaseExpression | Combinable , ** extra : Any ) -> None : ...
232
+ class OrderBy (Expression ):
233
+ template : str
234
+ nulls_first : bool
235
+ nulls_last : bool
236
+ descending : bool
237
+ expression : Expression | F | Subquery
238
+ def __init__ (
239
+ self ,
240
+ expression : Expression | F | Subquery ,
241
+ descending : bool = ...,
242
+ nulls_first : bool = ...,
243
+ nulls_last : bool = ...,
244
+ ) -> None : ...
226
245
227
246
class Window (SQLiteNumericMixin , Expression ):
228
247
template : str
0 commit comments