⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
gi
/
__pycache__
/
View File Name :
docstring.cpython-310.pyc
o ƒÆb] ã @ s d dl mZmZmZmZmZmZmZ dadd„ Z dd„ Z dd„ Zi eje “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ÚTypeTagNc C s | a dS )zSet 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% s r c C s t S )z6Returns the currently registered doc string generator.r r r r r Úget_doc_string_generator/ s r c C s t | ƒS )aE Generate 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_string4 s r c C sf | ¡ }t |d ¡}|rt|dƒr|jS |tjkr/| ¡ }| ¡ }|s'| ¡ S d| ¡ |f S | ¡ S )NÚ__name__z%s.%s)Zget_tagÚ_type_tag_to_py_typeÚgetÚhasattrr r Ú INTERFACEZ get_interfaceÚget_nameZget_tag_as_stringZ get_namespace)Zgi_typeZtype_tagZpy_typeZifaceZ info_namer r r Ú_get_pytype_hint\ s r c C sØ g }t | tƒrdg}nt | tƒr| ¡ rdg}| ¡ }d}tƒ }tƒ }|D ]}| | ¡ ¡ | | ¡ ¡ ¡ | | ¡ ¡ q%t|ƒD ]?\}}| ¡ t jkrOqC||v rTqC| ¡ }t| ¡ ƒ} | |vrh|d| 7 }| ¡ sp||v ru|d7 }n| ¡ r}|d7 }| |¡ qCd |¡} g }t| ¡ ƒ}| ¡ s©|r©||vr©|}| ¡ r¤|d7 }| |¡ t|ƒD ]*\}}| ¡ t jkr¹q||v r¾q| ¡ }t| ¡ ƒ} | |vrÒ|d| 7 }| |¡ q|råd| j| d |¡f S d | j| f S ) NÚself)Zvoidú:z=Nonez=
z, z or Nonez%s(%s) -> %sz%s(%s))Ú isinstancer r Z is_methodZ get_argumentsÚsetÚaddZget_destroyZget_typeZget_array_lengthZget_closureÚ enumerateZ get_directionr ZOUTr r Zmay_be_nullZis_optionalÚappendÚjoinZget_return_typeZskip_returnZmay_return_nullÚINr ) r Zin_args_strsÚargsZhint_blacklistZignore_indicesZuser_data_indicesÚargÚiZargstrZhintZin_args_strZ out_args_strsZreturn_hintr r r Ú_generate_callable_info_docn sb r&