Replace accepts expression as string (#671)

Fixes #503
This commit is contained in:
Tim Nyborg
2021-07-18 13:04:27 +01:00
committed by GitHub
parent 2a9410f3b1
commit c69e720dd8

View File

@@ -35,7 +35,9 @@ class Repeat(BytesToCharFieldConversionMixin, Func):
def __init__(self, expression: Union[Value, str], number: Optional[Union[Length, int]], **extra: Any) -> None: ...
class Replace(Func):
def __init__(self, expression: Combinable, text: Value, replacement: Value = ..., **extra: Any) -> None: ...
def __init__(
self, expression: Union[Combinable, str], text: Value, replacement: Value = ..., **extra: Any
) -> None: ...
class Right(Left): ...
class RPad(LPad): ...