mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-19 08:41:59 +03:00
explicitly type Image._mode, .readonly, and ._exif
This commit is contained in:
parent
1e18d68ff5
commit
1b0a3e1d0d
|
@ -536,12 +536,12 @@ class Image:
|
|||
# FIXME: take "new" parameters / other image?
|
||||
# FIXME: turn mode and size into delegating properties?
|
||||
self.im = None
|
||||
self._mode = ""
|
||||
self._mode: str = ""
|
||||
self._size: tuple[int, int] = (0, 0)
|
||||
self.palette = None
|
||||
self.info = {}
|
||||
self.readonly = 0
|
||||
self._exif = None
|
||||
self.readonly: int = 0
|
||||
self._exif: Exif | None = None
|
||||
|
||||
@property
|
||||
def width(self) -> int:
|
||||
|
|
Loading…
Reference in New Issue
Block a user