Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/jedi/inference/__pycache__/finder.cpython-39.pyc
Ðазад
a j�h� � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z ddlmZ ddl mZ d d � Zdd� Zd d� Zdd� Zdd� Zdd� ZdS )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 C s@ t |t�r|jn|}g }| D ]}|�|�}|r q4qtt|��S )zh Searches names that are defined in a scope (the different ``filters``), until a name fits. )� isinstancer �value�get�list�_remove_del_stmt)�filtersZname_or_strZstring_name�names�filter� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/jedi/inference/finder.py�filter_name s r c c s<