From da839a812c1acc274ef9d0227a86e1f33dc32139 Mon Sep 17 00:00:00 2001 From: MohammadMahdi Khalaj Date: Mon, 13 Nov 2023 15:33:57 +0330 Subject: [PATCH] Remove `=` --- aggify/utilty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aggify/utilty.py b/aggify/utilty.py index eacd7c9..40c0bb0 100644 --- a/aggify/utilty.py +++ b/aggify/utilty.py @@ -15,7 +15,7 @@ def to_mongo_positive_index(index: Union[int, slice]) -> slice: if index.step is not None: raise MongoIndexError - if int(index.start) >= index.stop: + if int(index.start) > index.stop: raise MongoIndexError if int(index.start) < 0: