From 5069501821d7ec7d2a4cff658e9f7bc2a230b4cc Mon Sep 17 00:00:00 2001 From: Lele Gaifax Date: Mon, 24 Oct 2022 21:27:37 +0200 Subject: [PATCH] Fix glitches found by lint --- lib/sqlalchemy/dialects/postgresql/ranges.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.47.3