File: //usr/lib/python3/dist-packages/yaml/__pycache__/events.cpython-310.pyc
o
    ��`�	  �                   @   s�   G d d� de �ZG dd� de�ZG dd� de�ZG dd� de�ZG dd	� d	e�ZG d
d� de�ZG dd
� d
e�ZG dd� de�ZG dd� de�Z	G dd� de�Z
G dd� de�ZG dd� de�ZG dd� de�Z
G dd� de�ZdS )c                   @   s   e Zd Zddd�Zdd� ZdS )�EventNc                 C   s   || _ || _d S �N)�
start_mark�end_mark)�selfr   r   � r   �-/usr/lib/python3/dist-packages/yaml/events.py�__init__   s   
zEvent.__init__c                    s:   � fdd�dD �}d� � fdd�|D ��}d� jj|f S )Nc                    s   g | ]	}t � |�r|�qS r   )�hasattr��.0�key�r   r   r   �
<listcomp>	   s    
�z"Event.__repr__.<locals>.<listcomp>)�anchor�tag�implicit�valuez, c                    s   g | ]}d |t � |�f �qS )z%s=%r)�getattrr
   r
   r   r   r      s    �z%s(%s))�join�	__class__�__name__)r   �
attributes�	argumentsr   r
   r   �__repr__   s
   �zEvent.__repr__�NN)r   �
__module__�__qualname__r   r   r   r   r   r   r      s    
r   c                   @   �   e Zd Zddd�ZdS )�	NodeEventNc                 C   �   || _ || _|| _d S r   )r   r   r   )r   r   r   r   r   r   r   r      �   
zNodeEvent.__init__r   �r   r   r   r   r   r   r   r   r      �    r   c                   @   �   e Zd Z		ddd�ZdS )�CollectionStartEventNc                 C   s(   || _ || _|| _|| _|| _|| _d S r   )r   r   r   r   r   �
flow_style)r   r   r   r   r   r   r%   r   r   r   r      s   
zCollectionStartEvent.__init__�NNNr!   r   r   r   r   r$      �    �r$   c                   @   �   e Zd ZdS )�CollectionEndEventN�r   r   r   r   r   r   r   r)      �    r)   c                   @   r   )�StreamStartEventNc                 C   r   r   )r   r   �encoding)r   r   r   r-   r   r   r   r   %   r    zStreamStartEvent.__init__r&