diff options
author | Jason Myers <jason@jasonamyers.com> | 2015-09-10 08:23:54 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-09-10 09:36:37 -0400 |
commit | 89276b5cadaa58079e1d496403287661c79ef557 (patch) | |
tree | 4979c75efad0725e43bc11b722766d96b5944ff1 | |
parent | 0d5a2155f0e1a526e8dbb81a7e4997cb0022fa93 (diff) | |
download | sqlalchemy-89276b5cadaa58079e1d496403287661c79ef557.tar.gz |
Correcting the Hybrid Property Example
Fixes #3528
Signed-off-by: Jason Myers <jason@jasonamyers.com>
-rw-r--r-- | lib/sqlalchemy/ext/hybrid.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/hybrid.py b/lib/sqlalchemy/ext/hybrid.py index 9c6178264..0073494b8 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): |