callbacks.cpython-312.pyc•12.9 kB
�
lMg�# � �x � d dl mZ G d� d� Z G d� de� Z G d� de� Z G d� d e� Z e� xZZy
)� )�wrapsc �| � e Zd ZdZdd�Zd� Zd� Zd� Zd� Zd� Z d � Z
d
� Zdd�Zdd�Z
d
� Zd� Zd� Zd� Zedd�� Zy)�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)``
Nc �D � || _ || _ |xs i | _ || _ y �N)�size�value�hooks�kw)�selfr r r
�kwargss �\C:\Users\noahv\Documents\GitHub\clickup-operator\.venv\Lib\site-packages\fsspec/callbacks.py�__init__zCallback.__init__ s"