Type annotations: Explicitly mark some Image data types.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-08-19 12:44:21 -07:00 committed by Eric Soroos
parent cbe95228ce
commit 2c76f3b843

View File

@ -547,11 +547,11 @@ class Image(object):
# type: () -> None # type: () -> None
# FIXME: take "new" parameters / other image? # FIXME: take "new" parameters / other image?
# FIXME: turn mode and size into delegating properties? # FIXME: turn mode and size into delegating properties?
self.im = None # type: Optional[ImagingCore] self.im = None # type: Optional[ImagingCore]
self.mode = "" self.mode = "" # type: Mode
self.size = (0, 0) self.size = (0, 0) # type: Size
self.palette = None # type: Optional[ImagePalette.ImagePalette] self.palette = None # type: Optional[ImagePalette.ImagePalette]
self.info = {} # type: Dict[Text, Any] self.info = {} # type: Dict[Text, Any]
self.category = NORMAL self.category = NORMAL
self.readonly = 0 self.readonly = 0
self.pyaccess = None self.pyaccess = None