From fdf073627cfbc29de563e37405ff24a5ce4466c2 Mon Sep 17 00:00:00 2001 From: Akuli Date: Fri, 9 Jul 2021 12:06:26 +0300 Subject: [PATCH] maybe fix stubtest (#5746) Co-authored-by: Jelle Zijlstra --- stubs/Pillow/PIL/Image.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/Pillow/PIL/Image.pyi b/stubs/Pillow/PIL/Image.pyi index 6375cc30c..6f8ac1d40 100644 --- a/stubs/Pillow/PIL/Image.pyi +++ b/stubs/Pillow/PIL/Image.pyi @@ -120,7 +120,7 @@ class Image: def __exit__(self, *args: Any) -> None: ... def close(self) -> None: ... def __eq__(self, other: object) -> bool: ... - def __array__(self) -> Any: ... # returns numpy.array() + def __array__(self, dtype=...) -> Any: ... # returns numpy.array() def __getstate__(self) -> _ImageState: ... def __setstate__(self, state: _ImageState) -> None: ... def tobytes(self, encoder_name: str = ..., *args) -> bytes: ...