mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-08 13:53:21 +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: take "new" parameters / other image?
|
||||||
# FIXME: turn mode and size into delegating properties?
|
# FIXME: turn mode and size into delegating properties?
|
||||||
self.im = None
|
self.im = None
|
||||||
self._mode = ""
|
self._mode: str = ""
|
||||||
self._size: tuple[int, int] = (0, 0)
|
self._size: tuple[int, int] = (0, 0)
|
||||||
self.palette = None
|
self.palette = None
|
||||||
self.info = {}
|
self.info = {}
|
||||||
self.readonly = 0
|
self.readonly: int = 0
|
||||||
self._exif = None
|
self._exif: Exif | None = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def width(self) -> int:
|
def width(self) -> int:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user