관리-도구
편집 파일: auth_user.cpython-311.pyc
� �܋fp � �T � d dl mZmZ d dlmZ d dlmZ G d� dej � � ZdS )� )�checkers� interfaces)�utils)�BASE_IDc � � e Zd Zej fZdZde� d�dde� d�diZ e j d� � d� � � Z e j d � � d � � � ZdS )�AuthUserCheckerzauth-user-checker�E�41)zHard-coded 'auth.User'�hard-coded-auth-userzJDon't hard-code the auth.User model. Use settings.AUTH_USER_MODEL instead!�42)z3User model imported from django.contrib.auth.models�imported-auth-userzeDon't import django.contrib.auth.models.User model. Use django.contrib.auth.get_user_model() instead!r c �N � |j dk r| � d|�� � d S d S )Nz auth.Userr ��node)�value�add_message)�selfr s �q/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint_django/checkers/auth_user.py�visit_constzAuthUserChecker.visit_const s9 � � �:��$�$����3�$��?�?�?�?�?� %�$� r c �| � |j dk r.|j D ](}|d dv r| � d|�� � d S �'d S d S )Nzdjango.contrib.auth.modelsr )�*�Userr r )�modname�namesr )r r �imported_namess r �visit_importfromz AuthUserChecker.visit_importfrom si � ��<�7�7�7�"&�*� � ��!�!�$� �5�5��$�$�%9��$�E�E�E��E�E� 6� 8�7� � r N) �__name__� __module__�__qualname__r �IAstroidChecker�__implements__�namer �msgsr �check_messagesr r � r r r r s� � � � � � � �0�2�N��D� �G���� � �G���� � �D� �U��0�1�1�@� @� 2�1�@� �U��.�/�/�� � 0�/�� � r r N) �pylintr r �pylint.checkersr �pylint_django.__pkginfo__r �BaseCheckerr r&