관리-도구
편집 파일: no_self_use.cpython-311.pyc
� �܋f � � � d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z m Z mZmZm Z d dlmZ erd dlmZ G d� d e� � Zdd�Zdd�ZdS )� )�annotations)� TYPE_CHECKING)�nodes)�BaseChecker)� PYMETHODS�decorated_with_property�is_overload_stub�is_protocol_class�overrides_a_method)� INFERENCE)�PyLinterc �b � � e Zd ZdZddddddgifiZd� fd�Zdd�Zdd�ZeZdd�Z dd�Z e Z� xZS )�NoSelfUseChecker�no_self_use�R6301zMethod could be a function�no-self-usezYUsed when a method doesn't use its bound instance, and so could be written as a function.� old_names)�R0201zold-no-self-use�linterr �return�Nonec �f �� t � � � |� � g | _ d | _ d S �N)�super�__init__�_first_attrs�_meth_could_be_func)�selfr � __class__s ��n/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/extensions/no_self_use.pyr zNoSelfUseChecker.__init__% s1 �� � ������ � � �.0���04�� � � � �node� nodes.Namec �p � | j r,|j | j d k s | j d sd| _ dS dS dS )zYCheck if the name handle an access to a class member if so, register it. ���FN)r �namer �r r"