ƺ>X d Z ddlmZ ddlZddlZddlZddlmZ ddlmZ ddl m
Z
ddlmZ ddl
mZmZmZ ej d k rdd
lmZ ndd
lmZ ej d ZddZ G d de ZdS )z)Docstring checker from the basic checker. )annotationsN)nodes)
interfaces)utils)
_BasicChecker)is_overload_stubis_property_deleteris_property_setter) )Literalz^_node1nodes.Module | nodes.ClassDef | nodes.FunctionDefreturn
str | Nonec | d }n# t $ r Y d S w xY wt j | }|sd S t |t j sd S t
|j S )N__doc__)KeyErrorr
safe_infer
isinstancer Conststrvalue)r docstrings x/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pylint/checkers/base/docstring_checker.py_infer_dunder_doc_attributer ! s| O tt ++I ti-- tys
c > e Zd Zdddddgifddddd gifd
dddd gifd
dddd gifdZdeddddfddddddffZd/dZ ej dd d0d Z ej dd d1d" Z
ej dd d2d$ ZeZd%e
j fd3d-Zd.S )4DocStringCheckerzEmpty %s docstringempty-docstringz^Used when a module, function, class or method has an empty docstring (it would be too easy ;). old_names)W0132zold-empty-docstringzMissing module docstringmissing-module-docstringzNUsed when a module has no docstring. Empty modules do not require a docstring.)C0111zmissing-docstringzMissing class docstringmissing-class-docstringzNUsed when a class has no docstring. Even an empty class must have a docstring.z$Missing function or method docstringmissing-function-docstringzoUsed when a function or method has no docstring. Some special methods like __init__ do not require a docstring.)C0112C0114C0115C0116zno-docstring-rgxregexpz