From: Jason Myers Date: Thu, 10 Sep 2015 13:23:54 +0000 (-0500) Subject: Correcting the Hybrid Property Example X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c625bca36e010e5ad8631074fe2ca6e7f7b3e91;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Correcting the Hybrid Property Example Fixes #3528 Signed-off-by: Jason Myers Conflicts: lib/sqlalchemy/ext/hybrid.py --- diff --git a/lib/sqlalchemy/ext/hybrid.py b/lib/sqlalchemy/ext/hybrid.py index 595e81468d..3e45035050 100644 --- a/lib/sqlalchemy/ext/hybrid.py +++ b/lib/sqlalchemy/ext/hybrid.py @@ -45,8 +45,8 @@ as the class itself:: return self.end - self.start @hybrid_method - def contains(self,point): - return (self.start <= point) & (point < self.end) + def contains(self, point): + return (self.start <= point) & (point <= self.end) @hybrid_method def intersects(self, other):