PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pylint_django
/
tests
/
input
/
__pycache__
/
Editing: func_noerror_protected_meta_access.cpython-311.pyc
� � h� � � � d Z ddlmZ ddlmZ G d� dej � � Zedk r` e� � Ze� � � e ej � d� � � � e e� � � � � dS dS ) a Tests to make sure that access to _meta on a model does not raise a protected-access warning, as it is part of the public API since Django 1.8 (see https://github.com/PyCQA/pylint-django/issues/66, and https://docs.djangoproject.com/en/1.9/ref/models/meta/) � )�print_function)�modelsc �6 � e Zd Z ej d�� � Zd� ZdS )�ModelWhichLikesMetaF)�defaultc �6 � | j � d� � S )N�ursuary)�_meta� get_field)�selfs ��/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/pylint_django/tests/input/func_noerror_protected_meta_access.py� do_a_thingzModelWhichLikesMeta.do_a_thing s � ��z�#�#�I�.�.�.� N)�__name__� __module__�__qualname__r �BooleanFieldr r � r r r r s8 � � � � � �!�f�!�%�0�0�0�G�/� /� /� /� /r r �__main__r N)�__doc__� __future__r � django.dbr �Modelr r �MODEL�save�printr r r r r r �<module>r s� ��� � &� %� %� %� %� %� � � � � � �/� /� /� /� /�&�,� /� /� /� �z�����!�!�E� �J�J�L�L�L� �E�%�+� � � � *� *�+�+�+� �E�%� � � � ������ �r
SAVE
CANCEL