mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Added strict type hints
This commit is contained in:
parent
d2dc8d3a6e
commit
f8d75032db
|
@ -1181,7 +1181,7 @@ class Image:
|
||||||
|
|
||||||
return im
|
return im
|
||||||
|
|
||||||
def copy(self):
|
def copy(self) -> Image:
|
||||||
"""
|
"""
|
||||||
Copies this image. Use this method if you wish to paste things
|
Copies this image. Use this method if you wish to paste things
|
||||||
into an image, but still retain the original.
|
into an image, but still retain the original.
|
||||||
|
@ -2450,7 +2450,7 @@ class Image:
|
||||||
if open_fp:
|
if open_fp:
|
||||||
fp.close()
|
fp.close()
|
||||||
|
|
||||||
def seek(self, frame):
|
def seek(self, frame) -> Image:
|
||||||
"""
|
"""
|
||||||
Seeks to the given frame in this sequence file. If you seek
|
Seeks to the given frame in this sequence file. If you seek
|
||||||
beyond the end of the sequence, the method raises an
|
beyond the end of the sequence, the method raises an
|
||||||
|
@ -2537,7 +2537,7 @@ class Image:
|
||||||
|
|
||||||
return self._new(self.im.getband(channel))
|
return self._new(self.im.getband(channel))
|
||||||
|
|
||||||
def tell(self):
|
def tell(self) -> int:
|
||||||
"""
|
"""
|
||||||
Returns the current frame number. See :py:meth:`~PIL.Image.Image.seek`.
|
Returns the current frame number. See :py:meth:`~PIL.Image.Image.seek`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user