mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
Rename protocol to SupportsGetData
This commit is contained in:
parent
bb8718e581
commit
431fe0dcc8
|
@ -482,7 +482,7 @@ def _getscaleoffset(expr):
|
|||
# Implementation wrapper
|
||||
|
||||
|
||||
class GetDataTransform(Protocol):
|
||||
class SupportsGetData(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 | SupportsGetData,
|
||||
data: Sequence[Any] | None = None,
|
||||
resample: int = Resampling.NEAREST,
|
||||
fill: int = 1,
|
||||
|
|
Loading…
Reference in New Issue
Block a user