HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
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)Zget_tag�_type_tag_to_py_type�get�hasattrrr�	INTERFACEZ
get_interface�get_nameZget_tag_as_stringZ
get_namespace)Zgi_typeZtype_tagZpy_typeZifaceZ	info_namerrr
�_get_pytype_hint\s
rc
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)Zvoid�:z=Nonez=<optional>z, z or Nonez%s(%s) -> %sz%s(%s))�
isinstancerrZ	is_methodZ
get_arguments�set�addZget_destroyZget_typeZget_array_lengthZget_closure�	enumerateZ
get_directionrZOUTrrZmay_be_nullZis_optional�append�joinZget_return_typeZskip_returnZmay_return_null�INr)
rZin_args_strs�argsZhint_blacklistZignore_indicesZuser_data_indices�arg�iZargstrZhintZin_args_strZ
out_args_strsZreturn_hintrrr
�_generate_callable_info_docnsb

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

::

��z    z()
z(**properties)
�
)rrZget_sizerZget_methodsZis_constructorr&)r�header�docZmethod_inforrr
�_generate_class_info_doc�s
��r,cCs,t|ttf�rt|�St|t�rt|�SdS)Nr')rrrr,rr&rrrr
�_generate_doc_dispatch�s

r-)-Z_girrrrrrrr
rrrZBOOLEAN�boolZINT8�intZUINT8ZINT16ZUINT16ZINT32ZUINT32ZINT64ZUINT64ZFLOAT�floatZDOUBLEZGLIST�listZGSLISTZARRAYZGHASH�dictZUTF8�strZFILENAMEZUNICHARrZGTYPEZERRORZVOIDrrr&r,r-rrrr
�<module>sb$

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