Skip to content

Remove type hint for deprecated im.putdata(im.getdata()) - #10059

Open
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:putdata_type
Open

radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:putdata_type

Conversation

@radarhere

Copy link
Copy Markdown
Member

#9292 deprecated getdata()

def getdata(self, band: int | None = None) -> core.ImagingCore:

which means that im.putdata(im.getdata()) no longer needs to be used. So core.ImagingCore does not need to be passed to im.putdata().

Pillow/src/PIL/Image.py

Lines 2111 to 2113 in 3068548

def putdata(
self,
data: Sequence[float] | Sequence[Sequence[int]] | core.ImagingCore | NumpyArray,

#9883 does not affect this.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant