Skip to content

Commit d28270b

Browse files
VelikiiNehochuhaAnton Pilipenko
andauthored
Fix tkinter.PhotoImage.put arguments (#13971)
* allow bytes * put to x1 y1 ?x2 y2? --------- Co-authored-by: Anton Pilipenko <anton.pilipenko@retechlabs.com>
1 parent f904240 commit d28270b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/tkinter/__init__.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3736,14 +3736,15 @@ class PhotoImage(Image, _PhotoImageLike):
37363736
self,
37373737
data: (
37383738
str
3739+
| bytes
37393740
| list[str]
37403741
| list[list[str]]
37413742
| list[tuple[str, ...]]
37423743
| tuple[str, ...]
37433744
| tuple[list[str], ...]
37443745
| tuple[tuple[str, ...], ...]
37453746
),
3746-
to: tuple[int, int] | None = None,
3747+
to: tuple[int, int] | tuple[int, int, int, int] | None = None,
37473748
) -> None: ...
37483749
if sys.version_info >= (3, 13):
37493750
def read(

0 commit comments

Comments
 (0)