Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/parso/__pycache__/tree.cpython-39.pyc
Ðазад
a e�h? � @ s� d dl mZmZ d dlmZmZmZmZ d dlm Z de dd�dd�ZG d d� d�ZG d d� de�Z G dd � d e �ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de �ZdS )� )�abstractmethod�abstractproperty)�List�Optional�Tuple�Union)�split_lines� NodeOrLeaf�Optional[BaseNode])�node� node_types�returnc G s( | j }|dur$|j|v r|S |j }qdS )an Recursively looks at the parents of a node and returns the first found node that matches ``node_types``. Returns ``None`` if no matching node is found. This function is deprecated, use :meth:`NodeOrLeaf.search_ancestor` instead. :param node: The ancestors of this node will be checked. :param node_types: type names that are searched for. N��parent�type)r r �n� r �z/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/parso/tree.py�search_ancestor s r c @ s� e Zd ZU dZdZeed<