From c40f60c9bd4bbbd88deb4e45b85fab9371256c82 Mon Sep 17 00:00:00 2001 From: Artucuno <28388670+Artucuno@users.noreply.github.com> Date: Fri, 24 Nov 2023 10:35:43 +1100 Subject: [PATCH] Fix small type error --- pydantic_mongo/abstract_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydantic_mongo/abstract_repository.py b/pydantic_mongo/abstract_repository.py index 91de166..bf4a5ad 100644 --- a/pydantic_mongo/abstract_repository.py +++ b/pydantic_mongo/abstract_repository.py @@ -161,7 +161,7 @@ def save_many(self, models: Iterable[T]) -> Union[Tuple[BulkWriteResult, None], bw = self.get_collection().bulk_write(bulk_operations) return bw, result - def delete_many(self, models: Iterable[T]) -> DeleteResult | None: + def delete_many(self, models: Iterable[T]) -> Union[DeleteResult, None]: """ Delete multiple entities from database """