mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-26 07:04:45 +03:00
Type annotations: Explicitly mark some Image data types.
This commit is contained in:
parent
cbe95228ce
commit
2c76f3b843
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user