diff options
author | Jason Myers <jason@jasonamyers.com> | 2015-09-10 08:23:54 -0500 |
---|---|---|
committer | Jason Myers <jason@jasonamyers.com> | 2015-09-10 08:23:54 -0500 |
commit | db824b535359abef145303556a227ccda3cdcccc (patch) | |
tree | a0a7be7e2a65966d5f5017c822aaa2f08e54aa41 /lib | |
parent | be548690c7053a25a546d47cc4ae6e3595c6f421 (diff) | |
download | sqlalchemy-db824b535359abef145303556a227ccda3cdcccc.tar.gz |
Correcting the Hybrid Property Example
Fixes #3528
Signed-off-by: Jason Myers <jason@jasonamyers.com>
Diffstat (limited to 'lib')
-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): |