mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-26 07:04:45 +03:00
Type annotations: Correct pixel_access & specify self.readonly.
This commit is contained in:
parent
2110a7f47b
commit
cf043ed16e
|
@ -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): ... ###
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user