o
    ÕÝ+i  ã                   @   sF   d Z zddlmZmZmZ W n
 ey   Y dS w G dd„ deƒZdS )zŽPrivate pydoctor customization code in order to exclude the package
docstring_parser.tests from the API documentation. Based on Twisted code.
é    )ÚDocumentableÚPrivacyClassÚSystemc                       s*   e Zd ZdZdedef‡ fdd„Z‡  ZS )ÚHidesTestsPydoctorSystemz.A PyDoctor "system" used to generate the docs.ÚdocumentableÚreturnc                    s    |  ¡  d¡r
tjS tƒ  |¡S )zjReport the privacy level for an object. Hide the module
            'docstring_parser.tests'.
            zdocstring_parser.tests)ÚfullNameÚ
startswithr   ÚHIDDENÚsuperÚprivacyClass)Úselfr   ©Ú	__class__© ú]/var/www/html/psymed-ai/venv/lib/python3.10/site-packages/docstring_parser/tests/_pydoctor.pyr      s   z%HidesTestsPydoctorSystem.privacyClass)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   Ú__classcell__r   r   r   r   r      s    r   N)r   Úpydoctor.modelr   r   r   ÚImportErrorr   r   r   r   r   Ú<module>   s    ÿ