%PDF- %PDF-
Direktori : /lib/python3/dist-packages/uaclient/api/__pycache__/ |
Current File : //lib/python3/dist-packages/uaclient/api/__pycache__/__init__.cpython-312.pyc |
� �ϴf � �� � d dl Z d dlZd dlmZ ej d� j ej � � G d� de j �� Z G d� de� Z G d � d � Z y)� N)�Optional� ubuntuproc �N � e Zd Zej dededee dee fd�� Zy)�AbstractProgress�total_steps� done_steps�previous_step_message�current_step_messagec � � y �N� ��selfr r r r s �7/usr/lib/python3/dist-packages/uaclient/api/__init__.py�progresszAbstractProgress.progress s � � � N) �__name__� __module__�__qualname__�abc�abstractmethod�intr �strr r r r r r sJ � ���� � � � � � (��}� � '�s�m� � � r r )� metaclassc �0 � e Zd Zdededee dee fd�Zy)�NullProgressr r r r c � � y r r r s r r zNullProgress.progress s � � r N)r r r r r r r r r r r r s7 � � � � � � � (��}� � '�s�m� r r c �L � e Zd Zddee fd�Zdefd�Zd� Zddefd�Z d e fd �Zy)�ProgressWrapperN�progress_objectc �` � |�|| _ nt � | _ d| _ d| _ d | _ y )Nr ���)r r r r r )r r s r �__init__zProgressWrapper.__init__# s1 � ��&�#2�D� �#/�>�D� �������%)��"r �messagec � � | j j | j | j | j |�� || _ | xj dz c_ y )N�r r r r � )r r r r r )r r$ s r r zProgressWrapper.progress, sO � ����%�%��(�(����"&�"<�"<�!(� &� � &-��"����1��r c � � | j | _ | j j | j | j | j d �� y )Nr&