| Server IP : 35.80.110.71 / Your IP : 216.73.216.21 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/jedi/inference/__pycache__/ |
Upload File : |
�
e� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ ddl
mZ d � Zd
� Zd� Zd� Zd
� Zd� Zy)a�
Searching for names with given scope and name. This is very central in Jedi and
Python. The name resolution is quite complicated with descripter,
``__getattribute__``, ``__getattr__``, ``global``, etc.
If you want to understand name resolution, please read the first few chapters
in http://blog.ionelmc.ro/2015/02/09/understanding-python-metaclasses/.
Flow checks
+++++++++++
Flow checks are not really mature. There's only a check for ``isinstance``. It
would check whether a flow has the form of ``if isinstance(a, type_or_tuple)``.
Unfortunately every other thing is being ignored (e.g. a == '' would be easy to
check for -> a is a string). There's big potential in these checks.
� )�search_ancestor)�Name)�settings)�
TreeArguments)�iterable)� NO_VALUES)�is_scopec � � t |t � r|j n|}g }| D ] }|j |� }|s� n t t |� � S )zh
Searches names that are defined in a scope (the different
``filters``), until a name fits.
)�
isinstancer �value�get�list�_remove_del_stmt)�filters�name_or_str�string_name�names�filters �7/usr/lib/python3/dist-packages/jedi/inference/finder.py�filter_namer sU � �
(2�+�t�'D�+�#�#�+�K��E�� ���
�
�;�'�����
� ��'�(�(� c # � K � | D ]>