관리-도구
편집 파일: brain_pathlib.cpython-311.pyc
� �܋f � �� � d dl mZ d dlmZ d dlmZmZmZmZ d dl m Z d dlmZm Z d dlmZ dZdd�Z ddd�Z e� � � ej ee� � e� � d S )� )�annotations)�Iterator)�bases�context� inference_tip�nodes)�_extract_single_node)�InferenceError�UseInferenceDefault)�AstroidManagerz from pathlib import Path Path �node�nodes.Subscript�return�boolc � � t | j t j � � r| j j dk sdS t | j � � � � � }n# t t f$ r Y dS w xY wt |t j � � o6t |j t j � � o|� � � dk S )N�parentsFzpathlib._PathParents)� isinstance�valuer � Attribute�attrname�next�inferr � StopIterationr �Instance�_proxied�ClassDef�qname)r r s �l/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/astroid/brain/brain_pathlib.py�_looks_like_parents_subscriptr s� � ��4�:�u��/�/��48�J�4G�9�4T�4T��u���T�Z�%�%�'�'�(�(�����M�*� � � ��u�u����� �5�%�.�)�)� 4��u�~�u�~�6�6� 4��K�K�M�M�3�3�s �&A �A/�.A/N�subscript_node�ctx�context.InferenceContext | None�Iterator[bases.Instance]c � � t | j t j � � rUt t t � � � � � � � }t |� � � g� � S t ��N)r �slicer �Constr r � PATH_TEMPLATEr �iter�instantiate_classr )r r! �path_clss r �infer_parents_subscriptr, % s` � � �.�&���4�4� 4��,�]�;�;�A�A�C�C�D�D���X�/�/�1�1�2�3�3�3� �� )r r r r r% )r r r! r"