o
�J�h� � @ sD d dl mZ d dlmZ ddlmZ G dd� d�Z dddd�ZdS )� )�annotations)�Callable� )�Imagec @ s8 e Zd ZdZddd�Zdd
d�Zddd
�Zddd�ZdS )�Iteratora-
This class implements an iterator object that can be used to loop
over an image sequence.
You can use the ``[]`` operator to access elements by index. This operator
will raise an :py:exc:`IndexError` if you try to access a nonexistent
frame.
:param im: An image object.
�im�Image.Image�return�Nonec C s0 t |d�sd}t|��|| _t| jdd�| _d S )N�seekzim must have seek methodZ
_min_framer )�hasattr�AttributeErrorr �getattr�position)�selfr �msg� r �OC:\pinokio\api\whisper-webui.git\app\env\lib\site-packages\PIL\ImageSequence.py�__init__$ s
zIterator.__init__�ix�intc
C s<