From: Lele Gaifax Date: Tue, 25 Oct 2022 05:52:25 +0000 (+0200) Subject: Remove duplicated check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b993bc06fe6536c2d08b344f77b17e5cffa93587;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Remove duplicated check --- diff --git a/lib/sqlalchemy/dialects/postgresql/ranges.py b/lib/sqlalchemy/dialects/postgresql/ranges.py index 8ff2abc0c0..a5fb79f413 100644 --- a/lib/sqlalchemy/dialects/postgresql/ranges.py +++ b/lib/sqlalchemy/dialects/postgresql/ranges.py @@ -87,8 +87,6 @@ class Range(Generic[_T]): return False if self.lower is None: - if self.upper is None: - return True return self.upper is None or ( value < self.upper if self.bounds[1] == ")"