]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Correcting the Hybrid Property Example
authorJason Myers <jason@jasonamyers.com>
Thu, 10 Sep 2015 13:23:54 +0000 (08:23 -0500)
committerJason Myers <jason@jasonamyers.com>
Thu, 10 Sep 2015 13:23:54 +0000 (08:23 -0500)
Fixes #3528

Signed-off-by: Jason Myers <jason@jasonamyers.com>
lib/sqlalchemy/ext/hybrid.py

index 9c6178264a1e1f3f4dfd25b2932a239a12c1a914..0073494b843aeeba73f38de94231c7fc32335f82 100644 (file)
@@ -46,7 +46,7 @@ as the class itself::
 
         @hybrid_method
         def contains(self, point):
-            return (self.start <= point) & (point < self.end)
+            return (self.start <= point) & (point <= self.end)
 
         @hybrid_method
         def intersects(self, other):