From 64c1d76b5dfa2230fd16fa2aafadfedaa41cd1c9 Mon Sep 17 00:00:00 2001 From: Daniel Herrmann Date: Mon, 19 Aug 2024 15:49:30 +0200 Subject: [PATCH] fix: wrong type annotation for some optional filter fields --- easyverein/models/invoice.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/easyverein/models/invoice.py b/easyverein/models/invoice.py index 7a196bb..678397b 100644 --- a/easyverein/models/invoice.py +++ b/easyverein/models/invoice.py @@ -106,15 +106,15 @@ class InvoiceFilter(BaseModel): id__in: FilterIntList | None = None relatedAddress: int | None = None - relatedAddress__isnull: bool = None + relatedAddress__isnull: bool | None = None relatedBookings: FilterIntList | None = None - relatedBookings__isnull: bool = None + relatedBookings__isnull: bool | None = None relatedBookings__ne: FilterIntList | None = None payedFromUser: int | None = None - payedFromUser__isnull: bool = None + payedFromUser__isnull: bool | None = None approvedFromAdmin: int | None = None - approvedFromAdmin__isnull: bool = None - canceledInvoice__isnull: bool = None + approvedFromAdmin__isnull: bool | None = None + canceledInvoice__isnull: bool | None = None date: Date | None = None date__gt: Date | None = None date__lt: Date | None = None