o
    
i                     @   sB   d dl mZmZmZmZ 	 ddlmZ 	 dgZG dd deZdS )	    )print_functionabsolute_importdivisionunicode_literals   )AnchorF)TextAnyDictListScalarBooleanc                   @   s4   e Zd Zdd Zedd ZdddZddd	Zd
S )r   c                 O   s>   | dd }tj| g|R i |}|d ur|j|dd |S )NanchorT)always_dump)popint__new__yaml_set_anchor)clsargskwr   b r   P/home/ubuntu/.local/lib/python3.10/site-packages/srsly/ruamel_yaml/scalarbool.pyr      s
   zScalarBoolean.__new__c                 C   s(   t | tjst| tjt  t| tjS N)hasattrr   attribsetattrgetattr)selfr   r   r   r   !   s   zScalarBoolean.anchorFc                 C   s&   t | tjsd S |s| jjr| jS d S r   )r   r   r   r   r   )r   anyr   r   r   yaml_anchor(   s
   zScalarBoolean.yaml_anchorc                 C   s   || j _|| j _d S r   )r   valuer   )r   r!   r   r   r   r   r   0   s   zScalarBoolean.yaml_set_anchorN)F)__name__
__module____qualname__r   propertyr   r    r   r   r   r   r   r      s    

N)
__future__r   r   r   r   r   r   typingr   r	   r
   r   __all__r   r   r   r   r   r   <module>   s   	