mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-26 15:14:45 +03:00
Type annotations: Amend __setstate__ to accept Tuple.
This commit is contained in:
parent
2d0fb6b979
commit
cb535be9af
|
@ -725,7 +725,7 @@ class Image(object):
|
||||||
self.tobytes()]
|
self.tobytes()]
|
||||||
|
|
||||||
def __setstate__(self, state):
|
def __setstate__(self, state):
|
||||||
# type: (List) -> None
|
# type: (Tuple) -> None
|
||||||
Image.__init__(self)
|
Image.__init__(self)
|
||||||
self.tile = [] # type: List[Tuple] ## FIXME More detail? Should tile be in __init__ & _new?
|
self.tile = [] # type: List[Tuple] ## FIXME More detail? Should tile be in __init__ & _new?
|
||||||
info, mode, size, palette, data = state
|
info, mode, size, palette, data = state
|
||||||
|
|
Loading…
Reference in New Issue
Block a user