From db824b535359abef145303556a227ccda3cdcccc 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 --- lib/sqlalchemy/ext/hybrid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.47.3