diff --git a/src/PIL/Image.py b/src/PIL/Image.py index b64133cbc..c65cf3850 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -3079,7 +3079,9 @@ class SupportsArrayInterface(Protocol): An object that has an ``__array_interface__`` dictionary. """ - __array_interface__: dict[str, Any] + @property + def __array_interface__(self) -> dict[str, Any]: + raise NotImplementedError() def fromarray(obj: SupportsArrayInterface, mode: str | None = None) -> Image: