blueloveTH 2 лет назад
Родитель
Сommit
974efb9070
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      include/typings/array2d.pyi

+ 3 - 3
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.