Type annotations: Correct pixel_access & specify self.readonly.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-08-20 10:44:43 -07:00 committed by Eric Soroos
parent 2110a7f47b
commit cf043ed16e
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class ImagingCore:
def getpixel(self, xy: XY) -> Optional[Any]: ...
def putpixel(self, xy: XY, value: Any) -> None: ...
def pixel_access(self, readonly: bool) -> Any: ...
def pixel_access(self, readonly: int) -> Any: ...
def convert(self, mode, dither, paletteimage): ...
def convert2(self): ... ###

View File

@ -553,7 +553,7 @@ class Image(object):
self.palette = None # type: Optional[ImagePalette.ImagePalette]
self.info = {} # type: Dict[Text, Any]
self.category = NORMAL
self.readonly = 0
self.readonly = 0 # type: int
self.pyaccess = None
@property