Current File : //usr/lib64/python2.7/site-packages/gi/docstring.pyc
�
�Zc@siddlmZmZmZmZmZmZmZd a d�Z
d�Zd�Zie
ej6eej6eej6eej6eej6eej6eej6eej6eej6eej6eej6eej6eej6eej6eej 6e!ej"6e!ej#6e!ej$6d ej%6d ej&6d ej'6d ej(6Z)d�Z*d�Z+d�Z,d�Z-e
e-�d S(
i(t VFuncInfotFunctionInfotCallableInfot
ObjectInfot
StructInfot DirectiontTypeTagcCs
|adS(s�Set doc string generator function
:param callable func:
Callable which takes a GIInfoStruct and returns documentation for it.
N(t_generate_doc_string_func(tfunc((s2/usr/lib64/python2.7/site-packages/gi/docstring.pytset_doc_string_generator%scCstS(s6Returns the currently registered doc string generator.(R(((s2/usr/lib64/python2.7/site-packages/gi/docstring.pytget_doc_string_generator/scCs
t|�S(sEGenerate 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(tinfo((s2/usr/lib64/python2.7/site-packages/gi/docstring.pytgenerate_doc_string4scCs�|j�}tj|d�}|r:t|d�r:|jS|tjkr�|j�}|j �}|sq|j
�Sd|j�|fS|j
�S(Nt__name__s%s.%s(tget_tagt_type_tag_to_py_typetgettNonethasattrR
Rt INTERFACEt
get_interfacetget_nametget_tag_as_stringt
get_namespace(tgi_typettype_tagtpy_typetifacet info_name((s2/usr/lib64/python2.7/site-packages/gi/docstring.pyt_get_pytype_hint\s
c
Cs�g}t|t�r!dg}n*t|t�rK|j�rKdg}qKn|j�}d
}t�}t�}xM|D]E}|j|j��|j|j�j ��|j|j
��qvWx�t|�D]�\}}|j�t
jkr�q�n||krq�n|j�}t|j��} | |kr@|d| 7}n|j�sX||kre|d7}n|j�r~|d7}n|j|�q�Wdj|�}
g}t|j��}|j�r|r||kr|}|j�r�|d7}n|j|�nx�t|�D]�\}}|j�t
jkr8qn||krJqn|j�}t|j��} | |kr�|d| 7}n|j|�qW|r�d|j|
dj|�fSd |j|
fSdS(Ntselftvoidt:s=Nones=<optional>s, s or Nones%s(%s) -> %ss%s(%s)(svoid(t
isinstanceRRt is_methodt
get_argumentstsettaddtget_destroytget_typetget_array_lengthtget_closuret enumeratet
get_directionRtOUTRRtmay_be_nulltis_optionaltappendtjointget_return_typetskip_returntmay_return_nulltINR
(
Rtin_args_strstargsthint_blacklisttignore_indicestuser_data_indicestargtitargstrthinttin_args_strt
out_args_strstreturn_hint((s2/usr/lib64/python2.7/site-packages/gi/docstring.pyt_generate_callable_info_docnsb
cCs�d}d}t|t�rK|j�dkrc|d|j�d7}qcn|d|j�d7}x;|j�D]-}|j�rp|dt|�d7}qpqpW|r�||SdSdS(Ns
:Constructors:
::
tis s()
s(**properties)
s
(R!Rtget_sizeRtget_methodstis_constructorRA(Rtheadertdoctmethod_info((s2/usr/lib64/python2.7/site-packages/gi/docstring.pyt_generate_class_info_doc�scCs<t|ttf�rt|�St|t�r8t|�SdS(NRB(R!RRRIRRA(R((s2/usr/lib64/python2.7/site-packages/gi/docstring.pyt_generate_doc_dispatch�s
N(.t_giRRRRRRRRRR R
RtbooltBOOLEANtinttINT8tUINT8tINT16tUINT16tINT32tUINT32tINT64tUINT64tfloattFLOATtDOUBLEtlisttGLISTtGSLISTtARRAYtdicttGHASHtstrtUTF8tFILENAMEtUNICHARRtGTYPEtERRORtVOIDRRRARIRJ(((s2/usr/lib64/python2.7/site-packages/gi/docstring.pyt<module>s>4
@