Rename protocol to SupportsGetData

This commit is contained in:
Sebastian Rittau 2024-05-10 11:46:35 +02:00
parent bb8718e581
commit 431fe0dcc8

View File

@ -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,