@@ -32,7 +32,7 @@ class Concat(Func):
3232
3333class Left (Func ):
3434 output_field : ClassVar [models .CharField ]
35- def __init__ (self , expression : Expression | str , length : Expression | int , ** extra : Any ) -> None : ...
35+ def __init__ (self , expression : Combinable | str , length : Expression | int , ** extra : Any ) -> None : ...
3636 def get_substr (self ) -> Substr : ...
3737 def as_oracle (self , compiler : SQLCompiler , connection : BaseDatabaseWrapper , ** extra_context : Any ) -> _AsSqlType : ...
3838 def as_sqlite (self , compiler : SQLCompiler , connection : BaseDatabaseWrapper , ** extra_context : Any ) -> _AsSqlType : ...
@@ -46,7 +46,7 @@ class Lower(Transform): ...
4646class LPad (Func ):
4747 output_field : ClassVar [models .CharField ]
4848 def __init__ (
49- self , expression : Expression | str , length : Expression | int | None , fill_text : Expression = ..., ** extra : Any
49+ self , expression : Combinable | str , length : Expression | int | None , fill_text : Expression = ..., ** extra : Any
5050 ) -> None : ...
5151
5252class LTrim (Transform ): ...
@@ -59,7 +59,7 @@ class Ord(Transform):
5959
6060class Repeat (Func ):
6161 output_field : ClassVar [models .CharField ]
62- def __init__ (self , expression : Expression | str , number : Expression | int | None , ** extra : Any ) -> None : ...
62+ def __init__ (self , expression : Combinable | str , number : Expression | int | None , ** extra : Any ) -> None : ...
6363 def as_oracle (self , compiler : SQLCompiler , connection : BaseDatabaseWrapper , ** extra_context : Any ) -> _AsSqlType : ...
6464
6565class Replace (Func ):
@@ -91,7 +91,7 @@ class StrIndex(Func):
9191class Substr (Func ):
9292 output_field : ClassVar [models .CharField ]
9393 def __init__ (
94- self , expression : Expression | str , pos : Expression | int , length : Expression | int | None = ..., ** extra : Any
94+ self , expression : Combinable | str , pos : Expression | int , length : Expression | int | None = ..., ** extra : Any
9595 ) -> None : ...
9696 def as_sqlite (self , compiler : SQLCompiler , connection : BaseDatabaseWrapper , ** extra_context : Any ) -> _AsSqlType : ...
9797 def as_oracle (self , compiler : SQLCompiler , connection : BaseDatabaseWrapper , ** extra_context : Any ) -> _AsSqlType : ...
0 commit comments