CasperSecurity

Current Path : /lib/python3/dist-packages/gi/__pycache__/
Upload File :
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$

��������	�
���
�����@
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY