update docstring

This commit is contained in:
blueloveTH 2024-10-18 19:23:28 +08:00
parent 31649a32b2
commit 9d02931c11

View File

@ -64,5 +64,5 @@ class array2d(Generic[T]):
def find_bounding_rect(self, value: T) -> tuple[int, int, int, int]:
"""Finds the bounding rectangle of the given value.
Returns a tuple `(x, y, width, height)` or `None` if the value is not found.
Returns a tuple `(x, y, width, height)` or raise `ValueError` if the value is not found.
"""