File: //usr/lib/python3/dist-packages/sphinx/ext/__pycache__/linkcode.cpython-310.pyc
o
�$�a, � @ s� d Z ddlmZmZmZ ddlmZ ddlmZ ddl Z ddl m
Z
ddlmZ ddl
mZ dd lmZ G d
d� de�Zded
eddfdd�Zdedeeef fdd�ZdS )z�
sphinx.ext.linkcode
~~~~~~~~~~~~~~~~~~~
Add external links to module code in Python object descriptions.
:copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )�Any�Dict�Set)�nodes)�NodeN)�addnodes)�Sphinx)�SphinxError)�_c @ s e Zd ZdZdS )�
LinkcodeErrorzlinkcode errorN)�__name__�
__module__�__qualname__�category� r r �5/usr/lib/python3/dist-packages/sphinx/ext/linkcode.pyr s r �app�doctree�returnc
C s& | j j}t|jdd �}t|jj�std��ddgdgdgddgd�}t|�t j
��D ]f}|�d�}t� }|D ]Y}t
|t j�s?q6i } |�|g �D ]}
|�|
�}|sRd }|| |
<