From: Lele Gaifax Date: Tue, 15 Nov 2022 20:07:10 +0000 (+0100) Subject: Add an explaining message to the should-not-get-there assertion X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a308dada74cc97c77bd9ee72b44409cf0b0de09c;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Add an explaining message to the should-not-get-there assertion --- diff --git a/lib/sqlalchemy/dialects/postgresql/ranges.py b/lib/sqlalchemy/dialects/postgresql/ranges.py index f5bb72da34..a4c39d0639 100644 --- a/lib/sqlalchemy/dialects/postgresql/ranges.py +++ b/lib/sqlalchemy/dialects/postgresql/ranges.py @@ -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