%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/gi/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/gi/__pycache__/docstring.cpython-312.pyc

�

��fF���ddlmZmZmZmZmZmZmZdad�Z	d�Z
d�Zieje
�eje�ej e�ej"e�ej$e�ej&e�ej(e�ej*e�ej,e�ej.e�ej2e�ej4e�ej8e�ej:e�ej<e�ej@e!�ejDe!�ejFe!ejHdejJdejLdejNdi�Z(d�Z)d�Z*d�Z+d	�Z,e	e,�y)
�)�	VFuncInfo�FunctionInfo�CallableInfo�
ObjectInfo�
StructInfo�	Direction�TypeTagNc��|ay)z�Set doc string generator function

    :param callable func:
        Callable which takes a GIInfoStruct and returns documentation for it.
    N��_generate_doc_string_func)�funcs �./usr/lib/python3/dist-packages/gi/docstring.py�set_doc_string_generatorr%s
��!%��c��tS)z6Returns the currently registered doc string generator.r�rr�get_doc_string_generatorr/s��$�$rc��t|�S)aEGenerate a doc string given a GIInfoStruct.

    :param gi.types.BaseInfo info:
        GI info instance to generate documentation for.
    :returns:
        Generated documentation as a string.
    :rtype: str

    This passes the info struct to the currently registered doc string
    generator and returns the result.
    r��infos r�generate_doc_stringr4s��%�T�*�*rc�V�|j�}tj|d�}|rt|d�r|jS|t
jk(rG|j�}|j�}|s|j�S|j��d|��S|j�S)N�__name__�.)�get_tag�_type_tag_to_py_type�get�hasattrrr	�	INTERFACE�
get_interface�get_name�get_tag_as_string�
get_namespace)�gi_type�type_tag�py_type�iface�	info_names     r�_get_pytype_hintr)\s������ �H�"�&�&�x��6�G��7�7�J�/�����	�W�&�&�	&��%�%�'���N�N�$�	���,�,�.�.��-�-�/��;�;��$�$�&�&rc�n�g}t|t�rdg}n#t|t�r|j�rdg}|j	�}d}|j�j
�h}t�}|D]m}|j|j��|j|j�j
��|j|j���ot|�D]�\}}|j�tjk(r�(||vr�-|j!�}t#|j��}	|	|vr|d|	zz
}|j%�s||vr|dz
}n|j'�r|dz
}|j)|���dj+|�}
g}t#|j��}|j-�s.|r,||vr(|}|j/�r|dz
}|j)|�t|�D]r\}}|j�tj0k(r�(||vr�-|j!�}t#|j��}	|	|vr|d|	zz
}|j)|��t|r#|j2�d|
�d	dj+|���S|j2�d|
�d
�S)N�self)�void�:z=Nonez=<optional>z, z or None�(z) -> �))�
isinstancerr�	is_method�
get_arguments�get_return_type�get_array_length�set�add�get_destroy�get_type�get_closure�	enumerate�
get_directionr�OUTr!r)�may_be_null�is_optional�append�join�skip_return�may_return_null�INr)
r�in_args_strs�args�hint_blacklist�ignore_indices�user_data_indices�arg�i�argstr�hint�in_args_str�
out_args_strs�return_hints
             r�_generate_callable_info_docrPnsz���L��$�	�"��x��	�D�,�	'��>�>��"�8�L�����D��N��*�*�,�=�=�?�@�N�����1�����3�?�?�,�-����3�<�<�>�:�:�<�=����c�o�o�/�0�1��D�/�$���3�����)�-�-�/����������������/���~�%��c�D�j� �F��?�?���%6� 6��g��F�
�_�_�
��m�#�F����F�#�$��)�)�L�)�K��M�"�4�#7�#7�#9�:�K�����+�+�^�2S������!��j� �F����V�$��D�/�	%���3�����)�,�,�.����������������/���~�%��c�D�j� �F����V�$�	%��!%����T�Y�Y�}�=U�V�V��=�=�+�6�6rc�:�d}d}t|t�r-|j�dkDr3|d|j�zdzz
}n|d|j�zdzz
}|j	�D]'}|j�s�|dt
|�zdzz
}�)|r||zSy)Nz
:Constructors:

::

��z    z()
z(**properties)
�
)r0r�get_sizer!�get_methods�is_constructorrP)r�header�doc�method_infos    r�_generate_class_info_docr[�s���
)�F�
�C��$�
�#��=�=�?�Q���6�D�M�M�O�+�f�4�4�C��v��
�
��'�*<�<�<���'�'�)�L���%�%�'��6�7��D�D�t�K�K�C�L����|��rc�|�t|ttf�rt|�St|t�rt|�Sy)NrR)r0rrr[rrPrs r�_generate_doc_dispatchr]�s4���$��Z�0�1�'��-�-�	�D�,�	'�*�4�0�0�
r)-�_girrrrrrr	rrrr�BOOLEAN�bool�INT8�int�UINT8�INT16�UINT16�INT32�UINT32�INT64�UINT64�FLOAT�float�DOUBLE�GLIST�list�GSLIST�ARRAY�GHASH�dict�UTF8�str�FILENAME�UNICHARr�GTYPE�ERROR�VOIDrr)rPr[r]rrr�<module>rzs���.���!��%�%�
+����������c���
�
�s�� �
�
�s�� ����	�
 �
�
�s�� ����
� �
�
�s�� ����� �
�
�u�� ����� �
�
�t�� ����� �
�
�t�� �
�
�t�� ���c��  �(�(�#�!�" �����)�)�4��
�
�t��
�
�t����d�+��2'�$=7�@�*��/�0r

Zerion Mini Shell 1.0