From 31c0f3a474c4b464360ad9196c4044b23f8203cf Mon Sep 17 00:00:00 2001 From: Jason Myers Date: Thu, 10 Sep 2015 08:23:54 -0500 Subject: [PATCH] Correcting the Hybrid Property Example Fixes #3528 Signed-off-by: Jason Myers Conflicts: lib/sqlalchemy/ext/hybrid.py --- lib/sqlalchemy/ext/hybrid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sqlalchemy/ext/hybrid.py b/lib/sqlalchemy/ext/hybrid.py index bc6a3d6e4e..671af74037 100644 --- a/lib/sqlalchemy/ext/hybrid.py +++ b/lib/sqlalchemy/ext/hybrid.py @@ -44,8 +44,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): -- 2.47.3