File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2647,7 +2647,7 @@ class PhotoImage(Image):
26472647 cnf : Dict [str , Any ] = ...,
26482648 master : Optional [Union [Misc , _tkinter .TkappType ]] = ...,
26492649 * ,
2650- data : str = ..., # not same as data argument of put()
2650+ data : Union [ str , bytes ] = ..., # not same as data argument of put()
26512651 format : str = ...,
26522652 file : AnyPath = ...,
26532653 gamma : float = ...,
@@ -2658,7 +2658,7 @@ class PhotoImage(Image):
26582658 def configure (
26592659 self ,
26602660 * ,
2661- data : str = ...,
2661+ data : Union [ str , bytes ] = ...,
26622662 format : str = ...,
26632663 file : AnyPath = ...,
26642664 gamma : float = ...,
@@ -2690,7 +2690,7 @@ class BitmapImage(Image):
26902690 master : Optional [Union [Misc , _tkinter .TkappType ]] = ...,
26912691 * ,
26922692 background : _Color = ...,
2693- data : str = ...,
2693+ data : Union [ str , bytes ] = ...,
26942694 file : AnyPath = ...,
26952695 foreground : _Color = ...,
26962696 maskdata : str = ...,
You can’t perform that action at this time.
0 commit comments