mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Rename protocol to SupportsGetData
This commit is contained in:
parent
bb8718e581
commit
431fe0dcc8
|
@ -482,7 +482,7 @@ def _getscaleoffset(expr):
|
||||||
# Implementation wrapper
|
# Implementation wrapper
|
||||||
|
|
||||||
|
|
||||||
class GetDataTransform(Protocol):
|
class SupportsGetData(Protocol):
|
||||||
def getdata(
|
def getdata(
|
||||||
self,
|
self,
|
||||||
) -> tuple[Transform, Sequence[Any]]: ...
|
) -> tuple[Transform, Sequence[Any]]: ...
|
||||||
|
@ -2695,7 +2695,7 @@ class Image:
|
||||||
def transform(
|
def transform(
|
||||||
self,
|
self,
|
||||||
size: tuple[int, int],
|
size: tuple[int, int],
|
||||||
method: Transform | ImageTransformHandler | GetDataTransform,
|
method: Transform | ImageTransformHandler | SupportsGetData,
|
||||||
data: Sequence[Any] | None = None,
|
data: Sequence[Any] | None = None,
|
||||||
resample: int = Resampling.NEAREST,
|
resample: int = Resampling.NEAREST,
|
||||||
fill: int = 1,
|
fill: int = 1,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user