mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 16:24:11 +03:00
Make GetDataTransform
public
This commit is contained in:
parent
ef35d79264
commit
7ae8d37138
|
@ -482,7 +482,7 @@ def _getscaleoffset(expr):
|
||||||
# Implementation wrapper
|
# Implementation wrapper
|
||||||
|
|
||||||
|
|
||||||
class _GetDataTransform(Protocol):
|
class GetDataTransform(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 | GetDataTransform,
|
||||||
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