From d3bc8a53add001a471306a437acc2fe7bed80e66 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 27 Nov 2024 13:53:15 +0800 Subject: [PATCH] ... --- include/typings/array2d.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/typings/array2d.pyi b/include/typings/array2d.pyi index 0a7ea5e1..50feb3d0 100644 --- a/include/typings/array2d.pyi +++ b/include/typings/array2d.pyi @@ -15,7 +15,7 @@ class array2d[T]: @property def numel(self) -> int: ... - def __new__(cls, n_cols: int, n_rows: int, default: Callable[[vec2i], T] = None): ... + def __new__(cls, n_cols: int, n_rows: int, default: T | Callable[[vec2i], T] | None = None): ... def __eq__(self, other: object) -> array2d[bool]: ... # type: ignore def __ne__(self, other: object) -> array2d[bool]: ... # type: ignore def __repr__(self) -> str: ...