Skip to content

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

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:putdata_type
Sep 26, 2026
Merged

radarhere merged 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.

@radarhere
radarhere enabled auto-merge (squash) September 26, 2026 21:45
@radarhere
radarhere disabled auto-merge September 26, 2026 21:45
@radarhere
radarhere merged commit 11a75b1 into python-pillow:main Sep 26, 2026
80 of 99 checks passed
@radarhere
radarhere deleted the putdata_type branch September 26, 2026 21:45
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.

2 participants