diff --git a/src/__init__.py b/src/__init__.py index 7508f1f1a..bd8a78c3d 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -12723,6 +12723,10 @@ def bottom_right(self): def height(self): return max(0, self.y1 - self.y0) + def contains(self, x): + """Check if x is in the rectangle.""" + return self.__contains__(x) + def include_point(self, p): """Extend rectangle to include point p.""" rect = self.rect.include_point(p)