]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add an explaining message to the should-not-get-there assertion
authorLele Gaifax <lele@metapensiero.it>
Tue, 15 Nov 2022 20:07:10 +0000 (21:07 +0100)
committerLele Gaifax <lele@metapensiero.it>
Tue, 15 Nov 2022 20:07:10 +0000 (21:07 +0100)
lib/sqlalchemy/dialects/postgresql/ranges.py

index f5bb72da34e1acacf1bb2f1584ad96569ff74305..a4c39d0639f6282acf3d120678b5ab5d1c87d345 100644 (file)
@@ -561,8 +561,7 @@ class Range(Generic[_T]):
             else:
                 return Range(oupper, supper, bounds=rlower_b + supper_b)
 
-        # TODO: figure out if I handled all the cases above
-        assert False
+        assert False, f"Unhandled case computing {self} - {other}"
 
     __sub__ = difference