Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
scalarbool.cpython-313.pyc21 linesDownload Raw Back to __pycache__
1�

2��j5��>�SrSSKJr SSKJr S/r3"SS\5rg)a?4You cannot subclass bool, and this is necessary for round-tripping anchored5bool values (and also if you want to preserve the original way of writing)6 7bool.__bases__ is type 'int', so that is what is used as the basis for ScalarBoolean as well.8 9You can use these in an if statement, but not when testing equivalence10�)�annotations)�Anchor�
ScalarBooleanc�N�\rSrSrSSjr\S	Sj5rS11SSjjrS12SSjjrSr	g)
r�c��URSS5n[R"U/UQ70UD6nUbURUSS9 U$)N�anchorT)�always_dump)�pop�int�__new__�yaml_set_anchor)�cls�args�kwr	�bs     �\D:\code\apps\devtools\python\user_packages\Python313\site-packages\ruamel/yaml/scalarbool.pyr
�ScalarBoolean.__new__sH������$�'���K�K��)�d�)�b�)����
���f�$��7���c��[U[R5(d#[U[R[55 [	U[R5$�N)�hasattrr�attrib�setattr�getattr)�selfs rr	�ScalarBoolean.anchors6���t�V�]�]�+�+��D�&�-�-���2��t�V�]�]�+�+rc��[U[R5(dgU(dURR(aUR$gr)rrrr	r13)r�anys  r�yaml_anchor�ScalarBoolean.yaml_anchor"s2���t�V�]�]�+�+���$�+�+�)�)��;�;��rc�D�XRlX Rlgr)r	�valuer14)rr#r15s   rr�ScalarBoolean.yaml_set_anchor)s��!����"-���r�N)r�Anyrr&rr&�returnr&)r'r&)F)r�boolr'r&)r#r&r16r(r'�None)17�__name__�18__module__�__qualname__�__firstlineno__r
�propertyr	r r�__static_attributes__r%rrrrs*����,��,�19�.�.rN)
�__doc__�20__future__r�ruamel.yaml.anchorr�typing�Textr&�Dict�List�__all__rrr%rr�<module>r8s+���#�%���21��.�C�.r
codekingpro/portable-devtools · Team Ai