From: Lele Gaifax Date: Mon, 24 Oct 2022 19:27:37 +0000 (+0200) Subject: Fix glitches found by lint X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5069501821d7ec7d2a4cff658e9f7bc2a230b4cc;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fix glitches found by lint --- diff --git a/lib/sqlalchemy/dialects/postgresql/ranges.py b/lib/sqlalchemy/dialects/postgresql/ranges.py index dd4383b8b1..de43e60c5a 100644 --- a/lib/sqlalchemy/dialects/postgresql/ranges.py +++ b/lib/sqlalchemy/dialects/postgresql/ranges.py @@ -80,7 +80,7 @@ class Range(Generic[_T]): def __bool__(self) -> bool: return self.empty - def contains_value(self, value: T) -> bool: + def contains_value(self, value: _T) -> bool: "Check whether this range contains the given `value`." if self.empty: @@ -135,7 +135,8 @@ class Range(Generic[_T]): if not lower_side: return False - # Lower end already considered, an upper-unbound range surely contains this + # Lower end already considered, an upper-unbound range surely contains + # this if other.upper is None: return True