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/?a=commitdiff_plain;h=31c0f3a474c4b464360ad9196c4044b23f8203cf;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 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):