]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix glitches found by lint
authorLele Gaifax <lele@metapensiero.it>
Mon, 24 Oct 2022 19:27:37 +0000 (21:27 +0200)
committerLele Gaifax <lele@metapensiero.it>
Mon, 24 Oct 2022 19:27:37 +0000 (21:27 +0200)
lib/sqlalchemy/dialects/postgresql/ranges.py

index dd4383b8b1c6f9b34fba36f24654df15d92739bc..de43e60c5ac3365f50d47ccf33b28b884bf9d818 100644 (file)
@@ -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