403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/jedi/inference/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/jedi/inference/__pycache__/helpers.cpython-311.pyc
�

p�{c7����ddlZddlZddlZddlZddlmZddlmZddlm	Z	d�Z
d�Zdd�Zd	�Z
d
�Zd�Zd�Zd
�Zd�Zd�ZGd�de��Zed���Zdd�Zd�Zd�ZdS)�N)�chain)�contextmanager)�treec��|j}d|vsd|vrdStj�tjdd��}t
tjtj	|��dzt|������S)Nz
dist-packagesz
site-packagesF�lib�pythonz\d.\d)�parts�os�path�join�sys�prefix�bool�re�match�escape�str)rr	�	base_paths   �8/usr/lib/python3/dist-packages/jedi/inference/helpers.py�is_stdlib_pathrsm��
�J�E��%���?�e�#;�#;��u�����S�Z���9�9�I������9�-�-��8�#�d�)�)�D�D�E�E�E�c��tj|��}g}|jD]c}t|tj��rtj|��}||_nt
|��}||_|�|���d||_|S)zO
    Much, much faster than copy.deepcopy, but just for parser tree nodes.
    )�copy�children�
isinstancer�Leaf�parent�
deep_ast_copy�append)�obj�new_obj�new_children�child�	new_childs     rrrs���
�i��n�n�G��L���'�'���e�T�Y�'�'�	'��	�%�(�(�I�&�I���%�e�,�,�I�&�I�����I�&�&�&�&�#�G���NrFc���|j}|jdkr ddlm}|�|j��S|jdks||jd|jdfvrC|dkrddlm}|S|jdkr|�	|��S|�	|��S|j}|j�
|��}|r|}n|d	z}|jd
kr5|}		|	d	z}	|j|	}
|
jdkrn�|j|	d	z|�}n|jd}
|jd	|�}|
dkr|d}
|d	d
�}|�	|
��}ddlm}
|D]}|
|||��}�|S)a�
    Creates a "call" node that consist of all ``trailer`` and ``power``
    objects.  E.g. if you call it with ``append``::

        list([]).append(3) or None

    You would get a node with the content ``list([]).append`` back.

    This generates a copy of the original ast node.

    If you're using the leaf, e.g. the bracket `)` it will return ``list([])``.

    We use this function for two purposes. Given an expression ``bar.foo``,
    we may want to
      - infer the type of ``foo`` to offer completions after foo
      - infer the type of ``bar`` to be able to jump to the definition of foo
    The option ``cut_own_trailer`` must be set to true for the second purpose.
    �fstringr)�compiled�trailer����:)�	NO_VALUES�atom��
error_nodeT�awaitN)�
infer_trailer)
r�type�jedi.inferencer'�get_string_value_set�inference_stater�jedi.inference.base_valuer+�
infer_node�index�jedi.inference.syntax_treer0)�context�leaf�cut_own_trailerr(r'r+�powerr7�cut�start�base�trailers�valuesr0s              r�infer_call_of_leafrB-s���&�k�G��|�y� � �+�+�+�+�+�+��,�,�W�-D�E�E�E�
�|�y� � �D��1A�!�1D�g�FV�WY�FZ�0[�$[�$[��3�;�;�;�;�;�;�;�;����<�6�!�!��%�%�g�.�.�.��!�!�$�'�'�'��N�E��N� � ��)�)�E�������a�i���z�\�!�!���	��Q�J�E��>�%�(�D��y�I�%�%��		�
�>�%�!�)�C�-�0����~�a� ���>�!�C�%�(���w�����{���A�B�B�<��
�
�
��
%�
%�F�8�8�8�8�8�8��9�9����w���8�8����Mrc��	|j}ttjd�|D������S#t$r|jdkr|gcYSgcYSwxYw)Nc3�4K�|]}t|��V��dS�N)�get_names_of_node)�.0�cs  r�	<genexpr>z$get_names_of_node.<locals>.<genexpr>xs+����'O�'O��(9�!�(<�(<�'O�'O�'O�'O�'O�'Or�name)r�listr�
from_iterable�AttributeErrorr1)�noders  rrFrFosw��Q��=���E�'�'O�'O�h�'O�'O�'O�O�O�P�P�P��
�����9�����6�M�M�M��I�I�I�	���s�4�A�A�Ac�|�|���o(t|�d���t��S�N)�default)�is_compiledr�get_safe_valuer��values r�	is_stringrV{s5�������V�:�e�.B�.B�4�.B�.P�.P�RU�#V�#V�Vrc�>�t|��pt|��SrE)�	is_numberrVrTs r�
is_literalrYs���U���/�y��/�/�/rc�V�|�d���}t||��r|SdSrP)rSr)rU�accepts  r�_get_safe_value_or_noner\�s9��� � �� �.�.�E��%�� � �����rc�,�t|t��SrE)r\�intrTs r�get_int_or_noner_����"�5�#�.�.�.rc�,�t|t��SrE)r\rrTs r�get_str_or_nonerb�r`rc�>�t|ttf��duSrE)r\r^�floatrTs rrXrX�s��"�5�3��,�7�7�t�C�Crc��eZdZdS)�SimpleGetItemNotFoundN)�__name__�
__module__�__qualname__�rrrfrf�s�������Drrfc'�LK�	dV�dS#|$r}t|���d}~wwxYwrE)rf)�exception_classes�es  r�reraise_getitem_errorsrn�sE����'�
��������'�'�'�#�A�&�&�&�����'���s�
�#��#c�D�d}g}|dd�D]�}|dvr|s|t|j��z
}� |jdkr1|jddd�D]}|�|��||urn��Zn3|jdkr|�|��||urn
��|dkr|sg}��||fS)Nrr-)�.z...�dotted_name�rJ�,)�lenrUr1rr)�nodes�is_import_from�
until_node�level�namesrN�ns       r�parse_dotted_namesr{�s���
�E��E��a�b�b�	�����<����
)���T�Z���(���
�Y�-�
'�
'��]�3�3�Q�3�'�
�
�����Q�����
�?�?��E�#���E�
�Y�&�
 �
 ��L�L������z�!�!���"�
�S�[�[�!�
����
��%�<�rc�n�|�|dd����|d��S)Nr))�
import_module�py__getattribute__)r4rys  r�values_from_qualified_namesr�s0���(�(��s��s��4�4�G�G��b�	�R�R�Rrc�P�|���j}|�dS|ddvS)NFr)�pandas�numpy�
tensorflow�
matplotlib)�get_root_context�string_names)r9r�s  r�is_big_annoying_libraryr��s3���+�+�-�-�:�L����u�
��?�M�M�Mr)FrE)rr
rr
�	itertoolsr�
contextlibr�parso.pythonrrrrBrFrVrYr\r_rbrX�	Exceptionrfrnr{rr�rjrr�<module>r�s�������
�
�
�
�	�	�	�	�	�	�	�	�������%�%�%�%�%�%�������	F�	F�	F����,?�?�?�?�D	Q�	Q�	Q�W�W�W�0�0�0����/�/�/�/�/�/�D�D�D�	�	�	�	�	�I�	�	�	��'�'���'�����:S�S�S�N�N�N�N�Nr

Youez - 2016 - github.com/yon3zu
LinuXploit