mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-03 14:29:41 -04:00
Correcting the Hybrid Property Example
Fixes #3528 Signed-off-by: Jason Myers <jason@jasonamyers.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user