
    9i5                    >    S r SSKJr  SSKJr   S/r
 " S S\5      rg)a?  
You cannot subclass bool, and this is necessary for round-tripping anchored
bool values (and also if you want to preserve the original way of writing)

bool.__bases__ is type 'int', so that is what is used as the basis for ScalarBoolean as well.

You can use these in an if statement, but not when testing equivalence
    )annotations)AnchorScalarBooleanc                  N    \ rS rSrSS jr\S	S j5       rS
SS jjrS
SS jjrSr	g)r      c                    UR                  SS 5      n[        R                  " U /UQ70 UD6nUb  UR                  USS9  U$ )NanchorT)always_dump)popint__new__yaml_set_anchor)clsargskwr	   bs        V/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/ruamel/yaml/scalarbool.pyr   ScalarBoolean.__new__   sH    $'KK)d)b)f$7    c                    [        U [        R                  5      (       d#  [        U [        R                  [        5       5        [	        U [        R                  5      $ N)hasattrr   attribsetattrgetattr)selfs    r   r	   ScalarBoolean.anchor   s6    tV]]++D&--2tV]]++r   c                    [        U [        R                  5      (       d  g U(       d  U R                  R                  (       a  U R                  $ g r   )r   r   r   r	   r
   )r   anys     r   yaml_anchorScalarBoolean.yaml_anchor"   s2    tV]]++$++));;r   c                D    XR                   l        X R                   l        g r   )r	   valuer
   )r   r#   r
   s      r   r   ScalarBoolean.yaml_set_anchor)   s    !"-r    N)r   Anyr   r&   r   r&   returnr&   )r'   r&   )F)r   boolr'   r&   )r#   r&   r
   r(   r'   None)
__name__
__module____qualname____firstlineno__r   propertyr	   r    r   __static_attributes__r%   r   r   r   r      s*     , ,
. .r   N)__doc__
__future__r   ruamel.yaml.anchorr   typingTextr&   DictList__all__r   r   r%   r   r   <module>r8      s+    # % 
.C .r   