mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Use a property
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
This commit is contained in:
parent
84238bd459
commit
c655dc0c6b
|
@ -3079,7 +3079,9 @@ class SupportsArrayInterface(Protocol):
|
||||||
An object that has an ``__array_interface__`` dictionary.
|
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:
|
def fromarray(obj: SupportsArrayInterface, mode: str | None = None) -> Image:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user