]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Blackify
authorLele Gaifax <lele@metapensiero.it>
Wed, 26 Oct 2022 17:51:23 +0000 (19:51 +0200)
committerLele Gaifax <lele@metapensiero.it>
Wed, 26 Oct 2022 17:51:23 +0000 (19:51 +0200)
lib/sqlalchemy/dialects/postgresql/ranges.py

index c5c6c8f8d2f53c36d36812f0ee33e698ff24c655..f5ce56c3f9941c8f6f4370a3b6eecb9244058a02 100644 (file)
@@ -137,13 +137,13 @@ class Range(Generic[_T]):
             return False
 
         slower = self.lower
-        slower_inc = self.bounds[0] == '['
+        slower_inc = self.bounds[0] == "["
         supper = self.upper
-        supper_inc = self.bounds[1] == ']'
+        supper_inc = self.bounds[1] == "]"
         olower = other.lower
-        olower_inc = other.bounds[0] == '['
+        olower_inc = other.bounds[0] == "["
         oupper = other.upper
-        oupper_inc = other.bounds[1] == ']'
+        oupper_inc = other.bounds[1] == "]"
 
         # A bilateral unbound range contains any other range
         if olower is oupper is None: