| 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 : /usr/lib/python3/dist-packages/parso/__pycache__/ |
Upload File : |
�
̑�a? � � � d dl mZmZ d dlmZmZmZmZ d dlm Z ddde
ddfd �Z G d
� d� � Z G d� de� � Z
G d
� de
� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de
� � ZdS )� )�abstractmethod�abstractproperty)�List�Optional�Tuple�Union)�split_lines�node�
NodeOrLeaf�
node_types�return�Optional[BaseNode]c �@ � | j }|�|j |v r|S |j }|�dS )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 �ns �,/usr/lib/python3/dist-packages/parso/tree.py�search_ancestorr s7 � �
��A�
�-��6�Z����H�
�H�� �-� �4� c �B � e Zd ZU dZdZeed<