Skip to content

Commit

Permalink
explicitly type Image._mode, .readonly, and ._exif
Browse files Browse the repository at this point in the history
  • Loading branch information
Yay295 committed Aug 1, 2024
1 parent 10bd76e commit 79e8e4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,12 +536,12 @@ def __init__(self):
# 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:
Expand Down

0 comments on commit 79e8e4a

Please sign in to comment.