From 974efb9070b4dd1b04ea8e0781bb15d104a2fdcf Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 16 Feb 2024 20:13:56 +0800 Subject: [PATCH] Update array2d.pyi --- include/typings/array2d.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/typings/array2d.pyi b/include/typings/array2d.pyi index e75ea472..223694b7 100644 --- a/include/typings/array2d.pyi +++ b/include/typings/array2d.pyi @@ -41,12 +41,12 @@ class array2d(Generic[T]): def copy_(self, other: 'array2d[T] | list[T]') -> None: ... # algorithms - def count_neighbors(self, value: T, neighborhood: Neighborhood = 'moore') -> 'array2d[int]': - """Counts the number of neighbors with the given value for each cell.""" - def count(self, value: T) -> int: """Counts the number of cells with the given value.""" + def count_neighbors(self, value: T, neighborhood: Neighborhood = 'moore') -> 'array2d[int]': + """Counts the number of neighbors with the given value for each cell.""" + def find_bounding_rect(self, value: T) -> tuple[int, int, int, int] | None: """Finds the bounding rectangle of the given value.