�
<��g�# � � � d dl mZ G d� d� � Z G d� de� � Z G d� de� � Z G d� d e� � Z e� � xZZd
S )� )�wrapsc � � e Zd ZdZdd�Zd� Zd� Zd� Zd� Zd � Z d
� Z
d� Zdd
�Zdd�Z
d� Zd� Zd� Zd� Zedd�� � ZdS )�Callbacka�
Base class and interface for callback mechanism
This class can be used directly for monitoring file transfers by
providing ``callback=Callback(hooks=...)`` (see the ``hooks`` argument,
below), or subclassed for more specialised behaviour.
Parameters
----------
size: int (optional)
Nominal quantity for the value that corresponds to a complete
transfer, e.g., total number of tiles or total number of
bytes
value: int (0)
Starting internal counter value
hooks: dict or None
A dict of named functions to be called on each update. The signature
of these must be ``f(size, value, **kwargs)``
Nr c �B � || _ || _ |pi | _ || _ d S �N)�size�value�hooks�kw)�selfr r r
�kwargss �`/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/fsspec/callbacks.py�__init__zCallback.__init__ s&