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__/param.cpython-311.pyc
�

p�{c�(���ddlmZddlmZddlmZddlmZddlm	Z	ddl
mZmZm
Z
ddlmZddlmZd	�ZGd
�de��Zd�Zd
�Zd�ZdS)�)�defaultdict)�	Parameter)�debug)�PushBackIterator)�analysis)�LazyKnownValue�
LazyTreeValue�LazyUnknownValue)�iterable)�	ParamNamec��t|t��r:|j}|jjdkr|j}tj|j|||��SdS)N�argument)�
isinstancer	�data�parent�typer�add�context)�
error_name�
lazy_value�message�nodes    �6/usr/lib/python3/dist-packages/jedi/inference/param.py�_add_argument_issuer
sX���*�m�,�,�K�����;��z�)�)��;�D��|�J�.�
�D�'�J�J�J�	K�K�c�2��eZdZd�fd�	Zd�Zd�Zd�Z�xZS)�ExecutedParamNameFc�v��t���||j|���||_||_dS)N)�	arguments)�super�__init__�name�_lazy_value�_is_default)�self�function_valuer�
param_noder�
is_default�	__class__s      �rr!zExecutedParamName.__init__s:���
��������I��N�N�N�%���%����rc�4�|j���S�N)r#�infer�r%s rr,zExecutedParamName.infers����%�%�'�'�'rc�^��|jrdS|������}|���tjtjfvrdS|�d�����sdSt�fd�|D����}tj
d||�d���|S)NTF)�execute_annotationc3�p�K�|]0}����D]}|�|��V���1dSr+)�gather_annotation_classes�is_sub_class_of)�.0�c1�c2�annotationss   �r�	<genexpr>z6ExecutedParamName.matches_signature.<locals>.<genexpr>)sq�����I�I�� +� E� E� G� G�I�I���(�(��,�,�I�I�I�I�I�I�Irzparam compare %s: %s <=> %s�BLUE)�color)r$r,�py__class__�get_kindr�VAR_POSITIONAL�VAR_KEYWORD�infer_annotation�anyr�dbg)r%�argument_values�matchesr6s   @r�matches_signaturez#ExecutedParamName.matches_signatures������	��4��*�*�,�,�2�2�4�4���=�=�?�?�y�7��9N�O�O�O��4��+�+�u�+�E�E���	��4��I�I�I�I� /�I�I�I�I�I��	�	�/��?�K�v�	G�	G�	G�	G��rc�2�d|jj�d|j�d�S)N�<z: �>)r)�__name__�string_namer-s r�__repr__zExecutedParamName.__repr__0s#���!�^�4�4�4�d�6F�6F�6F�G�Gr)F)rG�
__module__�__qualname__r!r,rCrI�
__classcell__)r)s@rrrsq�������&�&�&�&�&�&�
(�(�(����$H�H�H�H�H�H�Hrrc
�>	���������fd�}g�g}i}|j�|���}����D]}|||jj<�t��������tt�����}td���}i}	d}
d}����D�]�}d}t|d��\}
}|
��d}
	||
}|
|	vr]d}d�j�d|
�d	�}����D]7}��tj|jd
|j|������8n+t#|�||��|	|
<n#t$$r|||
<YnwxYwt|d��\}
}|
��	|�|	|jj����#t$$rYnwxYw|jdkr{g}|�M|�|��|D]5\}
}|
r|�|
|f��n|�|���6t+j|j|��}t1|��}n�|jd
krF|�||��t+j|jt5|����}t1|��}i}n�|��|j�zt9��}|
si����D]T}t;�t=�����}��tj|jd|j|������Unt?||j��}d}n|}|�t#|�|||�����tA|t8��s|d|	|jj<���|
r�tC|��tC|	��z
D]�}||}|sy|sw|jsp|jsi����D]T}t;�t=�����}��tj|jd|j|������U��|�"��D]8\}
}d�j�d|
�d	�}��tGd||������9t|��}|r|d\}}||��|�fS)a�
    Return a tuple of:
      - a list of `ExecutedParamName`s corresponding to the arguments of the
        function execution `function_value`, containing the inferred value of
        those arguments (whether explicit or default)
      - a list of the issues encountered while building that list

    For example, given:
    ```
    def foo(a, b, c=None, d='d'): ...

    foo(42, c='c')
    ```

    Then for the execution of `foo`, this will return a tuple containing:
      - a list with entries for each parameter a, b, c & d; the entries for a,
        c, & d will have their values (42, 'c' and 'd' respectively) included.
      - a list with a single entry about the lack of a value for `b`
    c���t�t�����}����r'��t	d||�����dS��d��tjd|��dS)Nztype-error-too-many-arguments�rznon-public warning: %s)�_error_argument_count�len�get_calling_nodes�appendrr�warning)r�mr�funcdef�issues�unpacked_vas  ����r�
too_many_argsz:get_executed_param_names_and_issues.<locals>.too_many_argsHs����!�'�3�{�+;�+;�<�<���&�&�(�(�	7��M�M�#�3������
�
�
�
�
�
�M�M�$�����M�2�A�6�6�6�6�6rc��gSr+�r[rr�<lambda>z5get_executed_param_names_and_issues.<locals>.<lambda>gs��B�rF)NNNT�TypeError: z-() got multiple values for keyword argument 'z'.ztype-error-multiple-valuesrO��ztype-error-too-few-arguments)r(���z'() got an unexpected keyword argument 'ztype-error-keyword-argumentr)$�	tree_node�get_default_param_context�
get_paramsr"�value�list�unpackr�iterr�nextrRrSrrrrr�KeyError�
star_count�	push_backr�	FakeTuple�inference_stater�FakeDict�dict�defaultr
rPrQr	r�set�itemsr)r&rrY�
result_params�
param_dict�default_param_context�param�var_arg_iterator�non_matching_keys�	keys_used�	keys_only�had_multiple_value_errorr(�keyr�	key_paramrU�contextualized_node�lazy_value_list�seq�
result_arg�dct�kr�remaining_arguments�	first_keyrVrWrXs `                        @@@r�#get_executed_param_names_and_issuesr�4s������(7�7�7�7�7�7�7�7�"�F��M��J��&�G�+�D�D�F�F���#�#�%�%�-�-��',�
�5�:�#�$�$��y�'�'��0�0�1�1�K�'��[�(9�(9�:�:��#�J�J�/�/���I��I�$���#�#�%�%�R<�R<��
�
��-�|�<�<�
��X��o��I�
H�&�s�O�	��)�#�#�/3�,�,�#�L�L�L�#�#�#�/�A�/8�/J�/J�/L�/L���+��
�
�$�L�)<�)D�)E�)<�)A�1�N�N�N������&7�&�	�9�h�&H�&H�I�c�N�N���
2�
2�
2�)1�!�#�&�&�&�
2���� !�!1�<�@�@�M�C��)�o�,	�� � ��5�:�+;�!<�=�=�=����	�	�	��D�	������q� � � �O��#��&�&�x�0�0�0�%5�5�5�M�C����(�2�2�C��?�C�C�C���#�*�*�8�4�4�4�4��$�^�%C�_�U�U�C�'��,�,�J�J�
�
��
"�
"��#��
�h�'�'�'��#�N�$B�D�IZ�D[�D[�\�\�C�'��,�,�J� "������=�(�!1�!3�!3�J�$�
�3<�3N�3N�3P�3P�	�	�/� 5�g�s�;�?O�?O� P� P�A�"�M�M� (��$7�$?�$B�$7�$<�,-�	!"�!"�!"������"/�/D�e�m�!T�!T�J�!%�J�J�%�
����.��I�u�j�Z�
�
�
�	�	�	��*�&6�7�7�	<�*7��*;�I�e�j�&�'�����Z���3�y�>�>�1�	�	�A��q�M�E�%�	
�)A�	
��'�	
�+0�=�	
�,5�+F�+F�+H�+H���'�-�g�s�;�7G�7G�H�H�A��M�M� ��%8�%@�%C�%8�%=�q�J�J�J������-�2�2�4�4�	
�	
���Z�Z��|�|�|�S�S�S�
"���
�
��-���
�
�
�	
�	
�	
�	
��/�0�0���"� 3�A� 6��	�:��
�j�!�!�!��&� � s$�E�E*�)E*�%F)�)
F6�5F6c�.�t||��dS)a|
    Return a list of `ExecutedParamName`s corresponding to the arguments of the
    function execution `function_value`, containing the inferred value of those
    arguments (whether explicit or default). Any issues building this list (for
    example required arguments which are missing in the invocation) are ignored.

    For example, given:
    ```
    def foo(a, b, c=None, d='d'): ...

    foo(42, c='c')
    ```

    Then for the execution of `foo`, this will return a list containing entries
    for each parameter a, b, c & d; the entries for a, c, & d will have their
    values (42, 'c' and 'd' respectively) included.
    r)r�)r&rs  r�get_executed_param_namesr��s��$/�~�y�I�I�!�L�Lrc���|���}td�|D����}|dkrd}ndt|��|z
z}d|j�d|�t|���d|�d�S)	Nc3�6K�|]}|js|j�dV��dS)r^N)rprj)r3�ps  rr7z(_error_argument_count.<locals>.<genexpr>�s0����K�K�!���K�a�l�K�A�K�K�K�K�K�Krrzexactly zfrom %s to r]z	() takes z arguments (z given).)rc�sumrQr")rV�actual_count�params�default_arguments�befores     rrPrP�s���
�
�
�
!�
!�F��K�K�v�K�K�K�K�K���A�������#�f�+�+�0A�"A�B����|�|�|�V�V�S��[�[�[�[�,�,�,�
@�ArN)�collectionsr�inspectr�jedir�jedi.inference.utilsr�jedi.inferencer�jedi.inference.lazy_valuerr	r
�jedi.inference.valuer�jedi.inference.namesrrrr�r�rPr[rr�<module>r�s<��#�#�#�#�#�#�������������1�1�1�1�1�1�#�#�#�#�#�#�$�$�$�$�$�$�$�$�$�$�)�)�)�)�)�)�*�*�*�*�*�*�K�K�K�H�H�H�H�H�	�H�H�H�>l!�l!�l!�^M�M�M�*	A�	A�	A�	A�	Ar

Youez - 2016 - github.com/yon3zu
LinuXploit