From 0494b0c8799dfbb7541daadce744c14990588582 Mon Sep 17 00:00:00 2001 From: Konstantin Alekseev Date: Tue, 20 Feb 2024 09:49:10 +0200 Subject: [PATCH] Allow `datetime - F("datetime")` expression --- django-stubs/db/models/expressions.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django-stubs/db/models/expressions.pyi b/django-stubs/db/models/expressions.pyi index 5ce14f54a..0a37a510a 100644 --- a/django-stubs/db/models/expressions.pyi +++ b/django-stubs/db/models/expressions.pyi @@ -49,7 +49,7 @@ class Combinable: def __radd__( self, other: datetime | _Numeric | Combinable | None ) -> Combinable: ... - def __rsub__(self, other: _Numeric | Combinable) -> Combinable: ... + def __rsub__(self, other: datetime | _Numeric | Combinable) -> Combinable: ... def __rmul__(self, other: _Numeric | Combinable) -> Combinable: ... def __rtruediv__(self, other: _Numeric | Combinable) -> Combinable: ... def __rmod__(self, other: int | Combinable) -> Combinable: ...