From: Jason Myers Date: Thu, 10 Sep 2015 13:23:54 +0000 (-0500) Subject: Correcting the Hybrid Property Example X-Git-Tag: rel_1_1_0b1~84^2~70^2~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db824b535359abef145303556a227ccda3cdcccc;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Correcting the Hybrid Property Example Fixes #3528 Signed-off-by: Jason Myers --- diff --git a/lib/sqlalchemy/ext/hybrid.py b/lib/sqlalchemy/ext/hybrid.py index 9c6178264a..0073494b84 100644 --- a/lib/sqlalchemy/ext/hybrid.py +++ b/lib/sqlalchemy/ext/hybrid.py @@ -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):