Skip to content

Commit

Permalink
Fix small type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Artucuno authored Nov 23, 2023
1 parent 7a82aae commit c40f60c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydantic_mongo/abstract_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down

0 comments on commit c40f60c

Please sign in to comment.