Make GetDataTransform public

This commit is contained in:
Sebastian Rittau 2024-05-08 12:14:59 +02:00
parent ef35d79264
commit 7ae8d37138

View File

@ -482,7 +482,7 @@ def _getscaleoffset(expr):
# Implementation wrapper
class _GetDataTransform(Protocol):
class GetDataTransform(Protocol):
def getdata(
self,
) -> tuple[Transform, Sequence[Any]]: ...
@ -2695,7 +2695,7 @@ class Image:
def transform(
self,
size: tuple[int, int],
method: Transform | ImageTransformHandler | _GetDataTransform,
method: Transform | ImageTransformHandler | GetDataTransform,
data: Sequence[Any] | None = None,
resample: int = Resampling.NEAREST,
fill: int = 1,