관리-도구
편집 파일: brain_attrs.cpython-311.pyc
� �܋f� � �� � d Z ddlmZ ddlmZ ddlmZmZmZm Z m Z ddlmZ e d� � Z e d� � Zefdefd �Zd eddfd�Z e� � � eee� � dS ) zy Astroid hook for the attrs library Without this hook pylint reports unsupported-assignment-operation for attrs classes � )� safe_infer)�AstroidManager)� AnnAssign�Assign� AssignName�Call�Unknown)�ClassDef)zattr.ib�attribzattr.attribz attr.fieldzattrs.field�field) zattr.s�attrsz attr.attrszattr.attributeszattr.definezattr.mutablezattr.frozenzattrs.definez attrs.mutablezattrs.frozen�returnc � � | j sdS | j j D ]h}t |t � � r|j }|� � � |v r dS t |� � }|r |� � � j dk r dS �idS )z>Return whether a decorated node has an attr decorator applied.FTzattr._next_gen) � decorators�nodes� isinstancer �func� as_stringr �root�name)�node�decorator_names�decorator_attribute�inferreds �j/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/astroid/brain/brain_attrs.py�is_decorated_with_attrsr # s� � ��?� ��u�#��4� � ���)�4�0�0� ;�"5�":���(�(�*�*�o�=�=��4�4��1�2�2��� �� � ���,�0@�@�@��4�4���5� r Nc �� � t | �� � g| j d<