| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/sphinx/util/__pycache__/ |
Upload File : |
a
�abP@ � @ s� d Z ddlmZmZmZmZmZmZmZm Z ddl
mZ ddlm
Z
ddlmZ ddlmZ ddlmZ ddlmZ dd lmZ dd
lmZ er�ddlmZ e�e�Zeje d�d
d�Z!G dd� d�Z"G dd� de"�Z#G dd� de#�Z$G dd� d�Z%dS )a8
sphinx.util.docfields
~~~~~~~~~~~~~~~~~~~~~
"Doc fields" are reST field lists in object descriptions that will
be domain-specifically transformed to a more appealing presentation.
:copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )�
TYPE_CHECKING�Any�Dict�List�Tuple�Type�Union�cast)�nodes)�Node)�Inliner)�addnodes)�BuildEnvironment)�__)�logging)�TextlikeNode)�ObjectDescription��node�returnc C sX t | �dkrdS t | �dkr@| dd� D ]}t|tj�s( dS q(t| d tj�rTdS dS )zCTrue if the node only contains one paragraph (and system messages).r F� NT)�len�
isinstancer
Zsystem_message� paragraph)r Zsubnode� r �9/usr/lib/python3.9/site-packages/sphinx/util/docfields.py�_is_single_paragraph s r c @ s� e Zd ZdZdZdZdeeedf eeeedd�dd �Z e
jddddfeeeee
eeeeed
� dd�Ze
jddddfeeeee
eeeeee d
� d
d�Zeee eeee f d�dd�Zdeeee f eeeeeejd�dd�ZdS )�Fielda� A doc field that is never grouped. It can have an argument or not, the
argument can be linked using a specified *rolename*. Field should be used
for doc fields that usually don't occur more than once.
The body can be linked using a specified *bodyrolename* if the content is
just a single inline or text node.
Example::
:returns: description of the return value
:rtype: description of the return type
Fr NT.)�name�names�label�has_arg�rolename�bodyrolenamer c C s( || _ || _|| _|| _|| _|| _d S �N)r r r r! r"