diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 07c4c6511..a350bde73 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,6 +2,9 @@ name: CI on: [push, pull_request] +permissions: + contents: read + jobs: ubuntu: runs-on: ubuntu-18.04 diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index ac92ac7f3..9d4c1a244 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -2,6 +2,9 @@ name: CI (node.js) on: [push, pull_request] +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest diff --git a/CHANGES b/CHANGES index 47cbb199b..b59818b07 100644 --- a/CHANGES +++ b/CHANGES @@ -36,15 +36,22 @@ Deprecated Features added -------------- -- #10286: C++, support requires clauses not just between the template +* #10286: C++, support requires clauses not just between the template parameter lists and the declaration. +* #10755: linkcheck: Check the source URL of raw directives that use the ``url`` + option. +* #10781: Allow :rst:role:`ref` role to be used with definitions and fields. +* #10717: HTML Search: Increase priority for full title and + subtitle matches in search results +* #10718: HTML Search: Save search result score to the HTML element for debugging Bugs fixed ---------- -- #10257: C++, ensure consistent non-specialization template argument +* #10257: C++, ensure consistent non-specialization template argument representation. -- #10729: C++, fix parsing of certain non-type template parameter packs. +* #10729: C++, fix parsing of certain non-type template parameter packs. +* #10715: Revert #10520: "Fix" use of sidebar classes in ``agogo.css_t`` Testing -------- @@ -136,8 +143,8 @@ Bugs fixed * #10506: LaTeX: build error if highlighting inline code role in figure caption (refs: #10251) * #10634: Make -P (pdb) option work better with exceptions triggered from events -* #10031: py domain: Fix spurious whitespace in unparsing various operators (``+``, - ``-``, ``~``, and ``**``). Patch by Adam Turner. +* #10550: py domain: Fix spurious whitespace in unparsing various operators (``+``, + ``-``, ``~``, and ``**``). Patch by Adam Turner (refs: #10551). * #10460: logging: Always show node source locations as absolute paths. * HTML Search: HTML tags are displayed as a part of object name * HTML Search: search snipets should not be folded diff --git a/doc/_themes/sphinx13/static/sphinx13.css b/doc/_themes/sphinx13/static/sphinx13.css index 4cf1df80e..b1f7c9ebb 100644 --- a/doc/_themes/sphinx13/static/sphinx13.css +++ b/doc/_themes/sphinx13/static/sphinx13.css @@ -131,7 +131,7 @@ div.footer { background-color: var(--colour-sphinx-blue); color: #ccc; text-shadow: 0 0 .2px rgba(255, 255, 255, 0.8); - padding: 3px 8px 3px 0; + padding: 3px 8px 3px 8px; clear: both; font-size: 0.8em; } diff --git a/doc/development/tutorials/helloworld.rst b/doc/development/tutorials/helloworld.rst index 2273330f1..8940e3dfd 100644 --- a/doc/development/tutorials/helloworld.rst +++ b/doc/development/tutorials/helloworld.rst @@ -105,7 +105,7 @@ Sphinx. :linenos: :lines: 12- -The simplest thing you can do it call the :meth:`~Sphinx.add_directive` method, +The simplest thing you can do is to call the :meth:`~Sphinx.add_directive` method, which is what we've done here. For this particular call, the first argument is the name of the directive itself as used in a reST file. In this case, we would use ``helloworld``. For example: diff --git a/setup.cfg b/setup.cfg index a6abe968f..5cc94b55c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -41,49 +41,37 @@ strict_optional = False [mypy-sphinx.builders] strict_optional = False -[mypy-sphinx.builders.gettext] -strict_optional = False - [mypy-sphinx.builders.html] strict_optional = False -[mypy-sphinx.builders.latex.*] +[mypy-sphinx.builders.latex] strict_optional = False [mypy-sphinx.builders.linkcheck] strict_optional = False -[mypy-sphinx.builders.singlehtml] -strict_optional = False - -[mypy-sphinx.cmd.*] -strict_optional = False - -[mypy-sphinx.directives] -strict_optional = False - [mypy-sphinx.directives.code] strict_optional = False [mypy-sphinx.domains.*] strict_optional = False -[mypy-sphinx.environment.*] +[mypy-sphinx.environment] +strict_optional = False + +[mypy-sphinx.environment.adapters.toctree] +strict_optional = False + +[mypy-sphinx.environment.adapters.indexentries] strict_optional = False [mypy-sphinx.ext.*] strict_optional = False -[mypy-sphinx.locale] -strict_optional = False - [mypy-sphinx.pycode.parser] strict_optional = False -[mypy-sphinx.registry.*] -strict_optional = False - -[mypy-sphinx.search] +[mypy-sphinx.registry] strict_optional = False [mypy-sphinx.setup_command] @@ -92,13 +80,40 @@ strict_optional = False [mypy-sphinx.testing.util] strict_optional = False -[mypy-sphinx.transforms.*] +[mypy-sphinx.transforms.i18n] strict_optional = False -[mypy-sphinx.util.*] +[mypy-sphinx.transforms.post_transforms.images] strict_optional = False -[mypy-sphinx.writers.*] +[mypy-sphinx.util.cfamily] +strict_optional = False + +[mypy-sphinx.util.docfields] +strict_optional = False + +[mypy-sphinx.util.docutils] +strict_optional = False + +[mypy-sphinx.util.nodes] +strict_optional = False + +[mypy-sphinx.util.typing] +strict_optional = False + +[mypy-sphinx.writers.html] +strict_optional = False + +[mypy-sphinx.writers.html5] +strict_optional = False + +[mypy-sphinx.writers.latex] +strict_optional = False + +[mypy-sphinx.writers.text] +strict_optional = False + +[mypy-sphinx.writers.xml] strict_optional = False [tool:pytest] diff --git a/setup.py b/setup.py index 9ac40e821..17b0542ca 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,3 @@ -import sys - from setuptools import find_packages, setup import sphinx @@ -7,56 +5,6 @@ import sphinx with open('README.rst', encoding='utf-8') as f: long_desc = f.read() -if sys.version_info < (3, 7): - print('ERROR: Sphinx requires at least Python 3.7 to run.') - sys.exit(1) - -install_requires = [ - 'sphinxcontrib-applehelp', - 'sphinxcontrib-devhelp', - 'sphinxcontrib-jsmath', - 'sphinxcontrib-htmlhelp>=2.0.0', - 'sphinxcontrib-serializinghtml>=1.1.5', - 'sphinxcontrib-qthelp', - 'Jinja2>=2.3', - 'Pygments>=2.0', - 'docutils>=0.14,<0.20', - 'snowballstemmer>=1.1', - 'babel>=1.3', - 'alabaster>=0.7,<0.8', - 'imagesize', - 'requests>=2.5.0', - 'packaging', - "importlib-metadata>=4.4; python_version < '3.10'", -] - -extras_require = { - # Environment Marker works for wheel 0.24 or later - ':sys_platform=="win32"': [ - 'colorama>=0.3.5', - ], - 'docs': [ - 'sphinxcontrib-websupport', - ], - 'lint': [ - 'flake8>=3.5.0', - 'flake8-comprehensions', - 'flake8-bugbear', - 'isort', - 'mypy>=0.971', - 'sphinx-lint', - 'docutils-stubs', - "types-typed-ast", - "types-requests", - ], - 'test': [ - 'pytest>=4.6', - 'html5lib', - "typed_ast; python_version < '3.8'", - 'cython', - ], -} - setup( name='Sphinx', version=sphinx.__version__, @@ -130,6 +78,45 @@ setup( ], }, python_requires=">=3.7", - install_requires=install_requires, - extras_require=extras_require, + install_requires=[ + 'sphinxcontrib-applehelp', + 'sphinxcontrib-devhelp', + 'sphinxcontrib-jsmath', + 'sphinxcontrib-htmlhelp>=2.0.0', + 'sphinxcontrib-serializinghtml>=1.1.5', + 'sphinxcontrib-qthelp', + 'Jinja2>=3.0', + 'Pygments>=2.12', + 'docutils>=0.14,<0.20', + 'snowballstemmer>=2.0', + 'babel>=2.9', + 'alabaster>=0.7,<0.8', + 'imagesize>=1.3', + 'requests>=2.5.0', + 'packaging>=21.0', + "importlib-metadata>=4.8; python_version < '3.10'", + "colorama>=0.4.5; sys_platform == 'win32'", + ], + extras_require={ + 'docs': [ + 'sphinxcontrib-websupport', + ], + 'lint': [ + 'flake8>=3.5.0', + 'flake8-comprehensions', + 'flake8-bugbear', + 'isort', + 'mypy>=0.971', + 'sphinx-lint', + 'docutils-stubs', + "types-typed-ast", + "types-requests", + ], + 'test': [ + 'pytest>=4.6', + 'html5lib', + "typed_ast; python_version < '3.8'", + 'cython', + ], + }, ) diff --git a/sphinx/application.py b/sphinx/application.py index 0afbca78e..254678569 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -125,9 +125,10 @@ class Sphinx: _warncount: int def __init__(self, srcdir: str, confdir: Optional[str], outdir: str, doctreedir: str, - buildername: str, confoverrides: Dict = None, + buildername: str, confoverrides: Optional[Dict] = None, status: Optional[IO] = sys.stdout, warning: Optional[IO] = sys.stderr, - freshenv: bool = False, warningiserror: bool = False, tags: List[str] = None, + freshenv: bool = False, warningiserror: bool = False, + tags: Optional[List[str]] = None, verbosity: int = 0, parallel: int = 0, keep_going: bool = False, pdb: bool = False) -> None: self.phase = BuildPhase.INITIALIZATION @@ -332,7 +333,7 @@ class Sphinx: # ---- main "build" method ------------------------------------------------- - def build(self, force_all: bool = False, filenames: List[str] = None) -> None: + def build(self, force_all: bool = False, filenames: Optional[List[str]] = None) -> None: self.phase = BuildPhase.READING try: if force_all: @@ -602,7 +603,7 @@ class Sphinx: self.registry.add_translation_handlers(node, **kwargs) def add_enumerable_node(self, node: Type[Element], figtype: str, - title_getter: TitleGetter = None, override: bool = False, + title_getter: Optional[TitleGetter] = None, override: bool = False, **kwargs: Tuple[Callable, Callable]) -> None: """Register a Docutils node class as a numfig target. @@ -789,7 +790,8 @@ class Sphinx: self.registry.add_index_to_domain(domain, index) def add_object_type(self, directivename: str, rolename: str, indextemplate: str = '', - parse_node: Callable = None, ref_nodeclass: Type[TextElement] = None, + parse_node: Optional[Callable] = None, + ref_nodeclass: Optional[Type[TextElement]] = None, objname: str = '', doc_field_types: List = [], override: bool = False ) -> None: """Register a new object type. @@ -856,7 +858,7 @@ class Sphinx: override=override) def add_crossref_type(self, directivename: str, rolename: str, indextemplate: str = '', - ref_nodeclass: Type[TextElement] = None, objname: str = '', + ref_nodeclass: Optional[Type[TextElement]] = None, objname: str = '', override: bool = False) -> None: """Register a new crossref object type. @@ -1069,7 +1071,7 @@ class Sphinx: self.builder.add_css_file(filename, # type: ignore[attr-defined] priority=priority, **kwargs) - def add_latex_package(self, packagename: str, options: str = None, + def add_latex_package(self, packagename: str, options: Optional[str] = None, after_hyperref: bool = False) -> None: r"""Register a package to include in the LaTeX source code. @@ -1292,7 +1294,12 @@ class TemplateBridge: that renders templates given a template name and a context. """ - def init(self, builder: "Builder", theme: Theme = None, dirs: List[str] = None) -> None: + def init( + self, + builder: "Builder", + theme: Optional[Theme] = None, + dirs: Optional[List[str]] = None + ) -> None: """Called by the builder to initialize the template system. *builder* is the builder object; you'll probably want to look at the diff --git a/sphinx/builders/_epub_base.py b/sphinx/builders/_epub_base.py index 99035dc42..2f3917411 100644 --- a/sphinx/builders/_epub_base.py +++ b/sphinx/builders/_epub_base.py @@ -464,7 +464,7 @@ class EpubBuilder(StandaloneHTMLBuilder): logger.info(__('writing mimetype file...')) copy_asset_file(path.join(self.template_dir, 'mimetype'), self.outdir) - def build_container(self, outname: str = 'META-INF/container.xml') -> None: # NOQA + def build_container(self, outname: str = 'META-INF/container.xml') -> None: """Write the metainfo file META-INF/container.xml.""" logger.info(__('writing META-INF/container.xml file...')) outdir = path.join(self.outdir, 'META-INF') diff --git a/sphinx/builders/gettext.py b/sphinx/builders/gettext.py index acdd9d137..e0706ff96 100644 --- a/sphinx/builders/gettext.py +++ b/sphinx/builders/gettext.py @@ -120,7 +120,6 @@ class I18nBuilder(Builder): """ name = 'i18n' versioning_method = 'text' - versioning_compare: bool = None # be set by `gettext_uuid` use_message_catalog = False def init(self) -> None: diff --git a/sphinx/builders/html/__init__.py b/sphinx/builders/html/__init__.py index 26d586348..42e1108c1 100644 --- a/sphinx/builders/html/__init__.py +++ b/sphinx/builders/html/__init__.py @@ -442,7 +442,7 @@ class StandaloneHTMLBuilder(Builder): def get_asset_paths(self) -> List[str]: return self.config.html_extra_path + self.config.html_static_path - def render_partial(self, node: Node) -> Dict[str, str]: + def render_partial(self, node: Optional[Node]) -> Dict[str, str]: """Utility: Render a lone doctree node.""" if node is None: return {'fragment': ''} diff --git a/sphinx/builders/latex/__init__.py b/sphinx/builders/latex/__init__.py index 32f9d32ef..d07093fd2 100644 --- a/sphinx/builders/latex/__init__.py +++ b/sphinx/builders/latex/__init__.py @@ -3,7 +3,7 @@ import os import warnings from os import path -from typing import Any, Dict, Iterable, List, Tuple, Union +from typing import Any, Dict, Iterable, List, Optional, Tuple, Union from docutils.frontend import OptionParser from docutils.nodes import Node @@ -127,13 +127,13 @@ class LaTeXBuilder(Builder): def get_outdated_docs(self) -> Union[str, List[str]]: return 'all documents' # for now - def get_target_uri(self, docname: str, typ: str = None) -> str: + def get_target_uri(self, docname: str, typ: Optional[str] = None) -> str: if docname not in self.docnames: raise NoUri(docname, typ) else: return '%' + docname - def get_relative_uri(self, from_: str, to: str, typ: str = None) -> str: + def get_relative_uri(self, from_: str, to: str, typ: Optional[str] = None) -> str: # ignore source path return self.get_target_uri(to, typ) @@ -510,25 +510,25 @@ def setup(app: Sphinx) -> Dict[str, Any]: app.connect('config-inited', validate_latex_theme_options, priority=800) app.connect('builder-inited', install_packages_for_ja) - app.add_config_value('latex_engine', default_latex_engine, None, + app.add_config_value('latex_engine', default_latex_engine, False, ENUM('pdflatex', 'xelatex', 'lualatex', 'platex', 'uplatex')) - app.add_config_value('latex_documents', default_latex_documents, None) - app.add_config_value('latex_logo', None, None, [str]) - app.add_config_value('latex_appendices', [], None) - app.add_config_value('latex_use_latex_multicolumn', False, None) - app.add_config_value('latex_use_xindy', default_latex_use_xindy, None, [bool]) - app.add_config_value('latex_toplevel_sectioning', None, None, + app.add_config_value('latex_documents', default_latex_documents, False) + app.add_config_value('latex_logo', None, False, [str]) + app.add_config_value('latex_appendices', [], False) + app.add_config_value('latex_use_latex_multicolumn', False, False) + app.add_config_value('latex_use_xindy', default_latex_use_xindy, False, [bool]) + app.add_config_value('latex_toplevel_sectioning', None, False, ENUM(None, 'part', 'chapter', 'section')) - app.add_config_value('latex_domain_indices', True, None, [list]) - app.add_config_value('latex_show_urls', 'no', None) - app.add_config_value('latex_show_pagerefs', False, None) - app.add_config_value('latex_elements', {}, None) - app.add_config_value('latex_additional_files', [], None) - app.add_config_value('latex_theme', 'manual', None, [str]) - app.add_config_value('latex_theme_options', {}, None) - app.add_config_value('latex_theme_path', [], None, [list]) + app.add_config_value('latex_domain_indices', True, False, [list]) + app.add_config_value('latex_show_urls', 'no', False) + app.add_config_value('latex_show_pagerefs', False, False) + app.add_config_value('latex_elements', {}, False) + app.add_config_value('latex_additional_files', [], False) + app.add_config_value('latex_theme', 'manual', False, [str]) + app.add_config_value('latex_theme_options', {}, False) + app.add_config_value('latex_theme_path', [], False, [list]) - app.add_config_value('latex_docclass', default_latex_docclass, None) + app.add_config_value('latex_docclass', default_latex_docclass, False) return { 'version': 'builtin', diff --git a/sphinx/builders/latex/theming.py b/sphinx/builders/latex/theming.py index 6bcdc7f9d..5f8300084 100644 --- a/sphinx/builders/latex/theming.py +++ b/sphinx/builders/latex/theming.py @@ -2,7 +2,7 @@ import configparser from os import path -from typing import Dict +from typing import Dict, Optional from sphinx.application import Sphinx from sphinx.config import Config @@ -113,14 +113,12 @@ class ThemeFactory: if name in self.themes: theme = self.themes[name] else: - theme = self.find_user_theme(name) - if not theme: - theme = Theme(name) + theme = self.find_user_theme(name) or Theme(name) theme.update(self.config) return theme - def find_user_theme(self, name: str) -> Theme: + def find_user_theme(self, name: str) -> Optional[Theme]: """Find a theme named as *name* from latex_theme_path.""" for theme_path in self.theme_paths: config_path = path.join(theme_path, name, 'theme.conf') diff --git a/sphinx/builders/latex/transforms.py b/sphinx/builders/latex/transforms.py index 5e478f5c4..e996250f7 100644 --- a/sphinx/builders/latex/transforms.py +++ b/sphinx/builders/latex/transforms.py @@ -1,6 +1,6 @@ """Transforms for LaTeX builder.""" -from typing import Any, Dict, List, Set, Tuple, cast +from typing import Any, Dict, List, Optional, Set, Tuple, cast from docutils import nodes from docutils.nodes import Element, Node @@ -94,13 +94,17 @@ class ShowUrlsTransform(SphinxPostTransform): def get_docname_for_node(self, node: Node) -> str: while node: if isinstance(node, nodes.document): - return self.env.path2doc(node['source']) + return self.env.path2doc(node['source']) or '' elif isinstance(node, addnodes.start_of_file): return node['docname'] else: node = node.parent - return None # never reached here. only for type hinting + try: + source = node['source'] # type: ignore[index] + except TypeError: + raise ValueError('Failed to get a docname!') from None + raise ValueError(f'Failed to get a docname for source {source!r}!') def create_footnote(self, uri: str, docname: str) -> Tuple[nodes.footnote, nodes.footnote_reference]: # NOQA reference = nodes.reference('', nodes.Text(uri), refuri=uri, nolinkurl=True) @@ -355,7 +359,7 @@ class LaTeXFootnoteVisitor(nodes.NodeVisitor): self.footnotes: List[nodes.footnote] = footnotes self.pendings: List[nodes.footnote] = [] self.table_footnotes: List[nodes.footnote] = [] - self.restricted: Element = None + self.restricted: Optional[Element] = None super().__init__(document) def unknown_visit(self, node: Node) -> None: @@ -433,7 +437,7 @@ class LaTeXFootnoteVisitor(nodes.NodeVisitor): number = node.astext().strip() docname = node['docname'] if (docname, number) in self.appeared: - footnote = self.appeared.get((docname, number)) + footnote = self.appeared[(docname, number)] footnote["referred"] = True mark = footnotemark('', number, refid=node['refid']) @@ -458,7 +462,7 @@ class LaTeXFootnoteVisitor(nodes.NodeVisitor): if docname == footnote['docname'] and footnote['ids'][0] == node['refid']: return footnote - return None + raise ValueError('No footnote not found for given reference node %r' % node) class BibliographyTransform(SphinxPostTransform): diff --git a/sphinx/builders/linkcheck.py b/sphinx/builders/linkcheck.py index 3a964db02..71e391378 100644 --- a/sphinx/builders/linkcheck.py +++ b/sphinx/builders/linkcheck.py @@ -502,32 +502,34 @@ class HyperlinkCollector(SphinxPostTransform): builder = cast(CheckExternalLinksBuilder, self.app.builder) hyperlinks = builder.hyperlinks + def add_uri(uri: str, node: nodes.Element) -> None: + newuri = self.app.emit_firstresult('linkcheck-process-uri', uri) + if newuri: + uri = newuri + + lineno = get_node_line(node) + uri_info = Hyperlink(uri, self.env.docname, lineno) + if uri not in hyperlinks: + hyperlinks[uri] = uri_info + # reference nodes for refnode in self.document.findall(nodes.reference): if 'refuri' not in refnode: continue uri = refnode['refuri'] - newuri = self.app.emit_firstresult('linkcheck-process-uri', uri) - if newuri: - uri = newuri - - lineno = get_node_line(refnode) - uri_info = Hyperlink(uri, self.env.docname, lineno) - if uri not in hyperlinks: - hyperlinks[uri] = uri_info + add_uri(uri, refnode) # image nodes for imgnode in self.document.findall(nodes.image): uri = imgnode['candidates'].get('?') if uri and '://' in uri: - newuri = self.app.emit_firstresult('linkcheck-process-uri', uri) - if newuri: - uri = newuri + add_uri(uri, imgnode) - lineno = get_node_line(imgnode) - uri_info = Hyperlink(uri, self.env.docname, lineno) - if uri not in hyperlinks: - hyperlinks[uri] = uri_info + # raw nodes + for rawnode in self.document.findall(nodes.raw): + uri = rawnode.get('source') + if uri and '://' in uri: + add_uri(uri, rawnode) def rewrite_github_anchor(app: Sphinx, uri: str) -> Optional[str]: diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 259af2eb2..d08ad1d92 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -9,7 +9,7 @@ import pdb import sys import traceback from os import path -from typing import IO, Any, List +from typing import IO, Any, List, Optional, TextIO from docutils.utils import SystemMessage @@ -24,7 +24,9 @@ from sphinx.util.docutils import docutils_namespace, patch_docutils from sphinx.util.osutil import abspath, ensuredir -def handle_exception(app: Sphinx, args: Any, exception: BaseException, stderr: IO = sys.stderr) -> None: # NOQA +def handle_exception( + app: Optional[Sphinx], args: Any, exception: BaseException, stderr: IO = sys.stderr +) -> None: if isinstance(exception, bdb.BdbQuit): return @@ -222,8 +224,8 @@ def build_main(argv: List[str] = sys.argv[1:]) -> int: if args.color == 'no' or (args.color == 'auto' and not color_terminal()): nocolor() - status = sys.stdout - warning = sys.stderr + status: Optional[TextIO] = sys.stdout + warning: Optional[TextIO] = sys.stderr error = sys.stderr if args.quiet: diff --git a/sphinx/cmd/make_mode.py b/sphinx/cmd/make_mode.py index b8f3d33e1..5dbcdee49 100644 --- a/sphinx/cmd/make_mode.py +++ b/sphinx/cmd/make_mode.py @@ -11,7 +11,7 @@ import os import subprocess import sys from os import path -from typing import List +from typing import List, Optional import sphinx from sphinx.cmd.build import build_main @@ -132,7 +132,7 @@ class Make: return 1 return 0 - def run_generic_build(self, builder: str, doctreedir: str = None) -> int: + def run_generic_build(self, builder: str, doctreedir: Optional[str] = None) -> int: # compatibility with old Makefile papersize = os.getenv('PAPER', '') opts = self.opts diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py index d8d4d3297..f9e3546bc 100644 --- a/sphinx/cmd/quickstart.py +++ b/sphinx/cmd/quickstart.py @@ -7,14 +7,14 @@ import sys import time from collections import OrderedDict from os import path -from typing import TYPE_CHECKING, Any, Callable, Dict, List, Union +from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Union # try to import readline, unix specific enhancement try: import readline if TYPE_CHECKING and sys.platform == "win32": # always false, for type checking raise ImportError - + READLINE_AVAILABLE = True if readline.__doc__ and 'libedit' in readline.__doc__: readline.parse_and_bind("bind ^I rl_complete") USE_LIBEDIT = True @@ -22,7 +22,7 @@ try: readline.parse_and_bind("tab: complete") USE_LIBEDIT = False except ImportError: - readline = None + READLINE_AVAILABLE = False USE_LIBEDIT = False from docutils.utils import column_width @@ -130,7 +130,9 @@ def ok(x: str) -> str: return x -def do_prompt(text: str, default: str = None, validator: Callable[[str], Any] = nonempty) -> Union[str, bool]: # NOQA +def do_prompt( + text: str, default: Optional[str] = None, validator: Callable[[str], Any] = nonempty +) -> Union[str, bool]: while True: if default is not None: prompt = PROMPT_PREFIX + '%s [%s]: ' % (text, default) @@ -141,7 +143,7 @@ def do_prompt(text: str, default: str = None, validator: Callable[[str], Any] = # sequence (see #5335). To avoid the problem, all prompts are not colored # on libedit. pass - elif readline: + elif READLINE_AVAILABLE: # pass input_mode=True if readline available prompt = colorize(COLOR_QUESTION, prompt, input_mode=True) else: @@ -159,8 +161,8 @@ def do_prompt(text: str, default: str = None, validator: Callable[[str], Any] = class QuickstartRenderer(SphinxRenderer): - def __init__(self, templatedir: str) -> None: - self.templatedir = templatedir or '' + def __init__(self, templatedir: str = '') -> None: + self.templatedir = templatedir super().__init__() def _has_custom_template(self, template_name: str) -> bool: @@ -321,10 +323,11 @@ def ask_user(d: Dict[str, Any]) -> None: print() -def generate(d: Dict, overwrite: bool = True, silent: bool = False, templatedir: str = None - ) -> None: +def generate( + d: Dict, overwrite: bool = True, silent: bool = False, templatedir: Optional[str] = None +) -> None: """Generate project based on values in *d*.""" - template = QuickstartRenderer(templatedir=templatedir) + template = QuickstartRenderer(templatedir or '') if 'mastertoctree' not in d: d['mastertoctree'] = '' @@ -357,7 +360,7 @@ def generate(d: Dict, overwrite: bool = True, silent: bool = False, templatedir: ensuredir(path.join(srcdir, d['dot'] + 'templates')) ensuredir(path.join(srcdir, d['dot'] + 'static')) - def write_file(fpath: str, content: str, newline: str = None) -> None: + def write_file(fpath: str, content: str, newline: Optional[str] = None) -> None: if overwrite or not path.isfile(fpath): if 'quiet' not in d: print(__('Creating file %s.') % fpath) diff --git a/sphinx/directives/__init__.py b/sphinx/directives/__init__.py index e38290016..7ed0a6e17 100644 --- a/sphinx/directives/__init__.py +++ b/sphinx/directives/__init__.py @@ -1,7 +1,7 @@ """Handlers for additional ReST directives.""" import re -from typing import TYPE_CHECKING, Any, Dict, Generic, List, Tuple, TypeVar, cast +from typing import TYPE_CHECKING, Any, Dict, Generic, List, Optional, Tuple, TypeVar, cast from docutils import nodes from docutils.nodes import Node @@ -55,9 +55,9 @@ class ObjectDescription(SphinxDirective, Generic[T]): # types of doc fields that this directive handles, see sphinx.util.docfields doc_field_types: List[Field] = [] - domain: str = None - objtype: str = None - indexnode: addnodes.index = None + domain: Optional[str] = None + objtype: Optional[str] = None + indexnode: Optional[addnodes.index] = None # Warning: this might be removed in future version. Don't touch this from extensions. _doc_field_type_map: Dict[str, Tuple[Field, bool]] = {} diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py index 0ea492e12..d33462dc0 100644 --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -239,7 +239,7 @@ class LiteralIncludeReader: def show_diff(self, location: Optional[Tuple[str, int]] = None) -> List[str]: new_lines = self.read_file(self.filename) - old_filename = self.options.get('diff') + old_filename = self.options['diff'] old_lines = self.read_file(old_filename) diff = unified_diff(old_lines, new_lines, old_filename, self.filename) return list(diff) diff --git a/sphinx/domains/c.py b/sphinx/domains/c.py index 4d0a1d8a6..0947e53bf 100644 --- a/sphinx/domains/c.py +++ b/sphinx/domains/c.py @@ -663,7 +663,7 @@ class ASTTrailingTypeSpecName(ASTTrailingTypeSpec): class ASTFunctionParameter(ASTBase): - def __init__(self, arg: "ASTTypeWithInit", ellipsis: bool = False) -> None: + def __init__(self, arg: Optional["ASTTypeWithInit"], ellipsis: bool = False) -> None: self.arg = arg self.ellipsis = ellipsis @@ -1959,7 +1959,7 @@ class Symbol: if Symbol.debug_lookup: Symbol.debug_print( "no match, but fill an empty declaration, candSybmol is not None?:", - candSymbol is not None) # NOQA + candSymbol is not None) Symbol.debug_indent -= 2 if candSymbol is not None: candSymbol.remove() @@ -2614,7 +2614,7 @@ class DefinitionParser(BaseParser): nestedName = self._parse_nested_name() return ASTTrailingTypeSpecName(prefix, nestedName) - def _parse_parameters(self, paramMode: str) -> ASTParameters: + def _parse_parameters(self, paramMode: str) -> Optional[ASTParameters]: self.skip_ws() if not self.skip_string('('): if paramMode == 'function': @@ -2915,7 +2915,7 @@ class DefinitionParser(BaseParser): value = self._parse_expression_fallback(fallbackEnd, parser, allow=allowFallback) return ASTInitializer(value) - def _parse_type(self, named: Union[bool, str], outer: str = None) -> ASTType: + def _parse_type(self, named: Union[bool, str], outer: Optional[str] = None) -> ASTType: """ named=False|'single'|True: 'single' is e.g., for function objects which doesn't need to name the arguments, but otherwise is a single name diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py index 3dedb49c1..380388c83 100644 --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -3646,7 +3646,9 @@ class ASTTemplateParamTemplateType(ASTTemplateParam): def get_identifier(self) -> ASTIdentifier: return self.data.get_identifier() - def get_id(self, version: int, objectType: str = None, symbol: "Symbol" = None) -> str: + def get_id( + self, version: int, objectType: Optional[str] = None, symbol: Optional["Symbol"] = None + ) -> str: assert version >= 2 # this is not part of the normal name mangling in C++ if symbol: @@ -4227,14 +4229,15 @@ class Symbol: else: return super().__setattr__(key, value) - def __init__(self, parent: "Symbol", identOrOp: Union[ASTIdentifier, ASTOperator], - templateParams: Union[ASTTemplateParams, ASTTemplateIntroduction], - templateArgs: Any, declaration: ASTDeclaration, - docname: str, line: int) -> None: + def __init__(self, parent: Optional["Symbol"], + identOrOp: Union[ASTIdentifier, ASTOperator, None], + templateParams: Union[ASTTemplateParams, ASTTemplateIntroduction, None], + templateArgs: Any, declaration: Optional[ASTDeclaration], + docname: Optional[str], line: Optional[int]) -> None: self.parent = parent # declarations in a single directive are linked together - self.siblingAbove: Symbol = None - self.siblingBelow: Symbol = None + self.siblingAbove: Optional[Symbol] = None + self.siblingBelow: Optional[Symbol] = None self.identOrOp = identOrOp # Ensure the same symbol for `A` is created for: # diff --git a/sphinx/domains/std.py b/sphinx/domains/std.py index d985e5d3a..b0d21b492 100644 --- a/sphinx/domains/std.py +++ b/sphinx/domains/std.py @@ -757,12 +757,21 @@ class StandardDomain(Domain): if not sectname: continue else: - toctree = next(node.findall(addnodes.toctree), None) - if toctree and toctree.get('caption'): - sectname = toctree.get('caption') + if (isinstance(node, (nodes.definition_list, + nodes.field_list)) and + node.children): + node = cast(nodes.Element, node.children[0]) + if isinstance(node, (nodes.field, nodes.definition_list_item)): + node = cast(nodes.Element, node.children[0]) + if isinstance(node, (nodes.term, nodes.field_name)): + sectname = clean_astext(node) else: - # anonymous-only labels - continue + toctree = next(node.findall(addnodes.toctree), None) + if toctree and toctree.get('caption'): + sectname = toctree.get('caption') + else: + # anonymous-only labels + continue self.labels[name] = docname, labelid, sectname def add_program_option(self, program: str, name: str, docname: str, labelid: str) -> None: diff --git a/sphinx/environment/__init__.py b/sphinx/environment/__init__.py index 25c83b450..04334101b 100644 --- a/sphinx/environment/__init__.py +++ b/sphinx/environment/__init__.py @@ -57,7 +57,7 @@ if docutils.__version_info__[:2] <= (0, 17): # This is increased every time an environment attribute is added # or changed to properly invalidate pickle files. -ENV_VERSION = 56 +ENV_VERSION = 57 # config status CONFIG_OK = 1 @@ -321,7 +321,7 @@ class BuildEnvironment: """ return self.project.doc2path(docname, base) - def relfn2path(self, filename: str, docname: str = None) -> Tuple[str, str]: + def relfn2path(self, filename: str, docname: Optional[str] = None) -> Tuple[str, str]: """Return paths to a file referenced from a document, relative to documentation root and absolute. @@ -334,7 +334,7 @@ class BuildEnvironment: rel_fn = filename[1:] else: docdir = path.dirname(self.doc2path(docname or self.docname, - base=None)) + base=False)) rel_fn = path.join(docdir, filename) return (canon_path(path.normpath(rel_fn)), @@ -482,7 +482,9 @@ class BuildEnvironment: *filename* should be absolute or relative to the source directory. """ - self.included[self.docname].add(self.path2doc(filename)) + doc = self.path2doc(filename) + if doc: + self.included[self.docname].add(doc) def note_reread(self) -> None: """Add the current document to the list of documents that will @@ -511,9 +513,14 @@ class BuildEnvironment: doctree.reporter = LoggingReporter(self.doc2path(docname)) return doctree - def get_and_resolve_doctree(self, docname: str, builder: "Builder", - doctree: nodes.document = None, prune_toctrees: bool = True, - includehidden: bool = False) -> nodes.document: + def get_and_resolve_doctree( + self, + docname: str, + builder: "Builder", + doctree: Optional[nodes.document] = None, + prune_toctrees: bool = True, + includehidden: bool = False + ) -> nodes.document: """Read the doctree from the pickle, resolve cross-references and toctrees and return it. """ @@ -537,7 +544,7 @@ class BuildEnvironment: def resolve_toctree(self, docname: str, builder: "Builder", toctree: addnodes.toctree, prune: bool = True, maxdepth: int = 0, titles_only: bool = False, - collapse: bool = False, includehidden: bool = False) -> Node: + collapse: bool = False, includehidden: bool = False) -> Optional[Node]: """Resolve a *toctree* node into individual bullet lists with titles as items, returning None (if no containing titles are found) or a new node. @@ -577,7 +584,9 @@ class BuildEnvironment: def collect_relations(self) -> Dict[str, List[Optional[str]]]: traversed = set() - def traverse_toctree(parent: str, docname: str) -> Iterator[Tuple[str, str]]: + def traverse_toctree( + parent: Optional[str], docname: str + ) -> Iterator[Tuple[Optional[str], str]]: if parent == docname: logger.warning(__('self referenced toctree found. Ignored.'), location=docname, type='toc', diff --git a/sphinx/environment/adapters/indexentries.py b/sphinx/environment/adapters/indexentries.py index 364331286..b651acae0 100644 --- a/sphinx/environment/adapters/indexentries.py +++ b/sphinx/environment/adapters/indexentries.py @@ -25,7 +25,7 @@ class IndexEntries: """Create the real index from the collected index entries.""" new: Dict[str, List] = {} - def add_entry(word: str, subword: str, main: str, link: bool = True, + def add_entry(word: str, subword: str, main: Optional[str], link: bool = True, dic: Dict[str, List] = new, key: Optional[str] = None) -> None: # Force the word to be unicode if it's a ASCII bytestring. # This will solve problems with unicode normalization later. diff --git a/sphinx/environment/collectors/toctree.py b/sphinx/environment/collectors/toctree.py index 507c83e97..52a8fd8d1 100644 --- a/sphinx/environment/collectors/toctree.py +++ b/sphinx/environment/collectors/toctree.py @@ -1,6 +1,6 @@ """Toctree collector for sphinx.environment.""" -from typing import Any, Dict, List, Set, Tuple, Type, TypeVar, cast +from typing import Any, Dict, List, Optional, Set, Tuple, Type, TypeVar, cast from docutils import nodes from docutils.nodes import Element, Node @@ -66,7 +66,7 @@ class TocTreeCollector(EnvironmentCollector): result.extend(traverse_in_section(child, cls)) return result - def build_toc(node: Element, depth: int = 1) -> nodes.bullet_list: + def build_toc(node: Element, depth: int = 1) -> Optional[nodes.bullet_list]: entries: List[Element] = [] for sectionnode in node: # find all toctree nodes in this section and add them @@ -132,7 +132,9 @@ class TocTreeCollector(EnvironmentCollector): old_secnumbers = env.toc_secnumbers env.toc_secnumbers = {} - def _walk_toc(node: Element, secnums: Dict, depth: int, titlenode: nodes.title = None) -> None: # NOQA + def _walk_toc( + node: Element, secnums: Dict, depth: int, titlenode: Optional[nodes.title] = None + ) -> None: # titlenode is the title of the document, it will get assigned a # secnumber too, so that it shows up in next/prev/parent rellinks for subnode in node.children: @@ -207,7 +209,7 @@ class TocTreeCollector(EnvironmentCollector): env.toc_fignumbers = {} fignum_counter: Dict[str, Dict[Tuple[int, ...], int]] = {} - def get_figtype(node: Node) -> str: + def get_figtype(node: Node) -> Optional[str]: for domain in env.domains.values(): figtype = domain.get_enumerable_node_type(node) if domain.name == 'std' and not domain.get_numfig_title(node): # type: ignore diff --git a/sphinx/ext/autodoc/directive.py b/sphinx/ext/autodoc/directive.py index a54ebe763..a3e3f09ff 100644 --- a/sphinx/ext/autodoc/directive.py +++ b/sphinx/ext/autodoc/directive.py @@ -1,4 +1,4 @@ -from typing import Any, Callable, Dict, List, Set, Type +from typing import Any, Callable, Dict, List, Optional, Set, Type from docutils import nodes from docutils.nodes import Element, Node @@ -40,7 +40,7 @@ class DummyOptionSpec(dict): class DocumenterBridge: """A parameters container for Documenters.""" - def __init__(self, env: BuildEnvironment, reporter: Reporter, options: Options, + def __init__(self, env: BuildEnvironment, reporter: Optional[Reporter], options: Options, lineno: int, state: Any) -> None: self.env = env self._reporter = reporter diff --git a/sphinx/ext/autodoc/preserve_defaults.py b/sphinx/ext/autodoc/preserve_defaults.py index 93de022dd..a12f42fcf 100644 --- a/sphinx/ext/autodoc/preserve_defaults.py +++ b/sphinx/ext/autodoc/preserve_defaults.py @@ -27,7 +27,7 @@ class DefaultValue: return self.name -def get_function_def(obj: Any) -> ast.FunctionDef: +def get_function_def(obj: Any) -> Optional[ast.FunctionDef]: """Get FunctionDef object from living object. This tries to parse original code for living object and returns AST node for given *obj*. diff --git a/sphinx/ext/autosummary/__init__.py b/sphinx/ext/autosummary/__init__.py index 90f22835e..9edb58505 100644 --- a/sphinx/ext/autosummary/__init__.py +++ b/sphinx/ext/autosummary/__init__.py @@ -262,7 +262,9 @@ class Autosummary(SphinxDirective): return nodes - def import_by_name(self, name: str, prefixes: List[str]) -> Tuple[str, Any, Any, str]: + def import_by_name( + self, name: str, prefixes: List[Optional[str]] + ) -> Tuple[str, Any, Any, str]: with mock(self.config.autosummary_mock_imports): try: return import_by_name(name, prefixes) @@ -593,7 +595,7 @@ class ImportExceptionGroup(Exception): self.exceptions = list(exceptions) -def get_import_prefixes_from_env(env: BuildEnvironment) -> List[str]: +def get_import_prefixes_from_env(env: BuildEnvironment) -> List[Optional[str]]: """ Obtain current Python import prefixes (for `import_by_name`) from ``document.env`` @@ -614,8 +616,9 @@ def get_import_prefixes_from_env(env: BuildEnvironment) -> List[str]: return prefixes -def import_by_name(name: str, prefixes: List[str] = [None], grouped_exception: bool = True - ) -> Tuple[str, Any, Any, str]: +def import_by_name( + name: str, prefixes: List[Optional[str]] = [None], grouped_exception: bool = True +) -> Tuple[str, Any, Any, str]: """Import a Python object that has the given *name*, under one of the *prefixes*. The first name that succeeds is used. """ @@ -695,7 +698,7 @@ def _import_by_name(name: str, grouped_exception: bool = True) -> Tuple[Any, Any raise ImportError(*exc.args) from exc -def import_ivar_by_name(name: str, prefixes: List[str] = [None], +def import_ivar_by_name(name: str, prefixes: List[Optional[str]] = [None], grouped_exception: bool = True) -> Tuple[str, Any, Any, str]: """Import an instance variable that has the given *name*, under one of the *prefixes*. The first name that succeeds is used. @@ -746,14 +749,14 @@ class AutoLink(SphinxRole): return objects, errors -def get_rst_suffix(app: Sphinx) -> str: +def get_rst_suffix(app: Sphinx) -> Optional[str]: def get_supported_format(suffix: str) -> Tuple[str, ...]: parser_class = app.registry.get_source_parsers().get(suffix) if parser_class is None: return ('restructuredtext',) return parser_class.supported - suffix: str = None + suffix = None for suffix in app.config.source_suffix: if 'restructuredtext' in get_supported_format(suffix): return suffix @@ -766,7 +769,7 @@ def process_generate_options(app: Sphinx) -> None: if genfiles is True: env = app.builder.env - genfiles = [env.doc2path(x, base=None) for x in env.found_docs + genfiles = [env.doc2path(x, base=False) for x in env.found_docs if os.path.isfile(env.doc2path(x))] elif genfiles is False: pass diff --git a/sphinx/ext/autosummary/generate.py b/sphinx/ext/autosummary/generate.py index 0e1daf79a..2950d7663 100644 --- a/sphinx/ext/autosummary/generate.py +++ b/sphinx/ext/autosummary/generate.py @@ -22,7 +22,7 @@ import re import sys from gettext import NullTranslations from os import path -from typing import Any, Dict, List, NamedTuple, Sequence, Set, Tuple, Type +from typing import Any, Dict, List, NamedTuple, Optional, Sequence, Set, Tuple, Type from jinja2 import TemplateNotFound from jinja2.sandbox import SandboxedEnvironment @@ -212,7 +212,8 @@ def generate_autosummary_content(name: str, obj: Any, parent: Any, template: AutosummaryRenderer, template_name: str, imported_members: bool, app: Any, recursive: bool, context: Dict, - modname: str = None, qualname: str = None) -> str: + modname: Optional[str] = None, + qualname: Optional[str] = None) -> str: doc = get_documenter(app, obj, parent) def skip_member(obj: Any, name: str, objtype: str) -> bool: @@ -351,8 +352,8 @@ def generate_autosummary_content(name: str, obj: Any, parent: Any, return template.render(doc.objtype, ns) -def generate_autosummary_docs(sources: List[str], output_dir: str = None, - suffix: str = '.rst', base_path: str = None, +def generate_autosummary_docs(sources: List[str], output_dir: Optional[str] = None, + suffix: str = '.rst', base_path: Optional[str] = None, imported_members: bool = False, app: Any = None, overwrite: bool = True, encoding: str = 'utf-8') -> None: showed_sources = sorted(sources) @@ -456,7 +457,9 @@ def find_autosummary_in_files(filenames: List[str]) -> List[AutosummaryEntry]: return documented -def find_autosummary_in_docstring(name: str, filename: str = None) -> List[AutosummaryEntry]: +def find_autosummary_in_docstring( + name: str, filename: Optional[str] = None +) -> List[AutosummaryEntry]: """Find out what items are documented in the given object's docstring. See `find_autosummary_in_lines`. @@ -476,8 +479,9 @@ def find_autosummary_in_docstring(name: str, filename: str = None) -> List[Autos return [] -def find_autosummary_in_lines(lines: List[str], module: str = None, filename: str = None - ) -> List[AutosummaryEntry]: +def find_autosummary_in_lines( + lines: List[str], module: Optional[str] = None, filename: Optional[str] = None +) -> List[AutosummaryEntry]: """Find out what items appear in autosummary:: directives in the given lines. @@ -501,7 +505,7 @@ def find_autosummary_in_lines(lines: List[str], module: str = None, filename: st documented: List[AutosummaryEntry] = [] recursive = False - toctree: str = None + toctree: Optional[str] = None template = None current_module = module in_autosummary = False diff --git a/sphinx/ext/doctest.py b/sphinx/ext/doctest.py index 4168e998a..8e060907f 100644 --- a/sphinx/ext/doctest.py +++ b/sphinx/ext/doctest.py @@ -45,11 +45,11 @@ def is_allowed_version(spec: str, version: str) -> bool: Some examples: - >>> is_allowed_version('3.3', '<=3.5') + >>> is_allowed_version('<=3.5', '3.3') True - >>> is_allowed_version('3.3', '<=3.2') + >>> is_allowed_version('<=3.2', '3.3') False - >>> is_allowed_version('3.3', '>3.2, <4.0') + >>> is_allowed_version('>3.2, <4.0', '3.3') True """ return Version(version) in SpecifierSet(spec) diff --git a/sphinx/ext/graphviz.py b/sphinx/ext/graphviz.py index 0459c4a96..1ca9dcc72 100644 --- a/sphinx/ext/graphviz.py +++ b/sphinx/ext/graphviz.py @@ -42,14 +42,14 @@ class ClickableMapDefinition: href_re = re.compile('href=".*?"') def __init__(self, filename: str, content: str, dot: str = '') -> None: - self.id: str = None + self.id: Optional[str] = None self.filename = filename self.content = content.splitlines() self.clickable: List[str] = [] self.parse(dot=dot) - def parse(self, dot: str = None) -> None: + def parse(self, dot: str) -> None: matched = self.maptag_re.match(self.content[0]) if not matched: raise GraphvizError('Invalid clickable map file found: %s' % self.filename) @@ -210,7 +210,8 @@ class GraphvizSimple(SphinxDirective): def render_dot(self: SphinxTranslator, code: str, options: Dict, format: str, - prefix: str = 'graphviz', filename: Optional[str] = None) -> Tuple[str, str]: + prefix: str = 'graphviz', filename: Optional[str] = None + ) -> Tuple[Optional[str], Optional[str]]: """Render graphviz code into a PNG or PDF output file.""" graphviz_dot = options.get('graphviz_dot', self.builder.config.graphviz_dot) hashkey = (code + str(options) + str(graphviz_dot) + @@ -224,7 +225,7 @@ def render_dot(self: SphinxTranslator, code: str, options: Dict, format: str, return relfn, outfn if (hasattr(self.builder, '_graphviz_warned_dot') and - self.builder._graphviz_warned_dot.get(graphviz_dot)): # type: ignore # NOQA + self.builder._graphviz_warned_dot.get(graphviz_dot)): # type: ignore[attr-defined] return None, None ensuredir(path.dirname(outfn)) @@ -262,8 +263,9 @@ def render_dot(self: SphinxTranslator, code: str, options: Dict, format: str, def render_dot_html(self: HTMLTranslator, node: graphviz, code: str, options: Dict, - prefix: str = 'graphviz', imgcls: str = None, alt: str = None, - filename: str = None) -> Tuple[str, str]: + prefix: str = 'graphviz', imgcls: Optional[str] = None, + alt: Optional[str] = None, filename: Optional[str] = None + ) -> Tuple[str, str]: format = self.builder.config.graphviz_output_format try: if format not in ('png', 'svg'): @@ -318,7 +320,7 @@ def html_visit_graphviz(self: HTMLTranslator, node: graphviz) -> None: def render_dot_latex(self: LaTeXTranslator, node: graphviz, code: str, - options: Dict, prefix: str = 'graphviz', filename: str = None + options: Dict, prefix: str = 'graphviz', filename: Optional[str] = None ) -> None: try: fname, outfn = render_dot(self, code, options, 'pdf', prefix, filename) diff --git a/sphinx/ext/imgmath.py b/sphinx/ext/imgmath.py index 6bc503d65..f0096ff2c 100644 --- a/sphinx/ext/imgmath.py +++ b/sphinx/ext/imgmath.py @@ -154,7 +154,7 @@ def convert_dvi_to_image(command: List[str], name: str) -> Tuple[str, str]: raise MathExtError('%s exited with error' % name, exc.stderr, exc.stdout) from exc -def convert_dvi_to_png(dvipath: str, builder: Builder) -> Tuple[str, int]: +def convert_dvi_to_png(dvipath: str, builder: Builder) -> Tuple[str, Optional[int]]: """Convert DVI file to PNG image.""" tempdir = ensure_tempdir(builder) filename = path.join(tempdir, 'math.png') @@ -180,7 +180,7 @@ def convert_dvi_to_png(dvipath: str, builder: Builder) -> Tuple[str, int]: return filename, depth -def convert_dvi_to_svg(dvipath: str, builder: Builder) -> Tuple[str, int]: +def convert_dvi_to_svg(dvipath: str, builder: Builder) -> Tuple[str, Optional[int]]: """Convert DVI file to SVG image.""" tempdir = ensure_tempdir(builder) filename = path.join(tempdir, 'math.svg') @@ -204,7 +204,7 @@ def convert_dvi_to_svg(dvipath: str, builder: Builder) -> Tuple[str, int]: return filename, depth -def render_math(self: HTMLTranslator, math: str) -> Tuple[str, int]: +def render_math(self: HTMLTranslator, math: str) -> Tuple[Optional[str], Optional[int]]: """Render the LaTeX math expression *math* using latex and dvipng or dvisvgm. diff --git a/sphinx/ext/napoleon/iterators.py b/sphinx/ext/napoleon/iterators.py index 8c9de73e6..86f0dabf5 100644 --- a/sphinx/ext/napoleon/iterators.py +++ b/sphinx/ext/napoleon/iterators.py @@ -55,7 +55,7 @@ class peek_iter: def __iter__(self) -> "peek_iter": return self - def __next__(self, n: int = None) -> Any: + def __next__(self, n: Optional[int] = None) -> Any: return self.next(n) def _fillcache(self, n: Optional[int]) -> None: @@ -84,7 +84,7 @@ class peek_iter: """ return self.peek() != self.sentinel - def next(self, n: int = None) -> Any: + def next(self, n: Optional[int] = None) -> Any: """Get the next item or `n` items of the iterator. Parameters diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py index bb020850f..4a737eb40 100644 --- a/sphinx/highlighting.py +++ b/sphinx/highlighting.py @@ -2,17 +2,15 @@ from functools import partial from importlib import import_module -from typing import Any, Dict, Optional +from typing import Any, Dict, Optional, Type, Union -from packaging import version -from pygments import __version__ as pygmentsversion from pygments import highlight from pygments.filters import ErrorToken from pygments.formatter import Formatter from pygments.formatters import HtmlFormatter, LatexFormatter from pygments.lexer import Lexer -from pygments.lexers import (CLexer, Python3Lexer, PythonConsoleLexer, PythonLexer, RstLexer, - TextLexer, get_lexer_by_name, guess_lexer) +from pygments.lexers import (CLexer, PythonConsoleLexer, PythonLexer, RstLexer, TextLexer, + get_lexer_by_name, guess_lexer) from pygments.style import Style from pygments.styles import get_style_by_name from pygments.util import ClassNotFound @@ -24,12 +22,10 @@ from sphinx.util import logging, texescape logger = logging.getLogger(__name__) lexers: Dict[str, Lexer] = {} -lexer_classes: Dict[str, Lexer] = { +lexer_classes: Dict[str, Union[Type[Lexer], 'partial[Lexer]']] = { 'none': partial(TextLexer, stripnl=False), 'python': partial(PythonLexer, stripnl=False), - 'python3': partial(Python3Lexer, stripnl=False), 'pycon': partial(PythonConsoleLexer, stripnl=False), - 'pycon3': partial(PythonConsoleLexer, python3=True, stripnl=False), 'rest': partial(RstLexer, stripnl=False), 'c': partial(CLexer, stripnl=False), } @@ -76,20 +72,6 @@ _LATEX_ADD_STYLES = r''' \protected\def\PYG#1#2{\PYG@reset\PYG@toks#1+\relax+{\PYG@do{#2}}} \makeatother ''' -# fix extra space between lines when Pygments highlighting uses \fcolorbox -# add a {..} to limit \fboxsep scope, and force \fcolorbox use correct value -# cf pygments #1708 which makes this unneeded for Pygments > 2.7.4 -_LATEX_ADD_STYLES_FIXPYG = r''' -\makeatletter -% fix for Pygments <= 2.7.4 -\let\spx@original@fcolorbox\fcolorbox -\def\spx@fixpyg@fcolorbox{\fboxsep-\fboxrule\spx@original@fcolorbox} -\protected\def\PYG#1#2{\PYG@reset\PYG@toks#1+\relax+% - {\let\fcolorbox\spx@fixpyg@fcolorbox\PYG@do{#2}}} -\makeatother -''' -if version.parse(pygmentsversion).release <= (2, 7, 4): - _LATEX_ADD_STYLES += _LATEX_ADD_STYLES_FIXPYG class PygmentsBridge: @@ -132,17 +114,12 @@ class PygmentsBridge: opts = {} # find out which lexer to use - if lang in ('py', 'python'): + if lang in {'py', 'python', 'py3', 'python3', 'default'}: if source.startswith('>>>'): # interactive session lang = 'pycon' else: lang = 'python' - elif lang in ('py3', 'python3', 'default'): - if source.startswith('>>>'): - lang = 'pycon3' - else: - lang = 'python3' if lang in lexers: # just return custom lexers here (without installing raiseonerror filter) diff --git a/sphinx/locale/__init__.py b/sphinx/locale/__init__.py index 54a4570e3..6d4465a09 100644 --- a/sphinx/locale/__init__.py +++ b/sphinx/locale/__init__.py @@ -140,7 +140,7 @@ def init(locale_dirs: List[Optional[str]], language: Optional[str], return translator, has_translation -def setlocale(category: int, value: Union[str, Iterable[str]] = None) -> None: +def setlocale(category: int, value: Union[str, Iterable[str], None] = None) -> None: """Update locale settings. This does not throw any exception even if update fails. diff --git a/sphinx/locale/ar/LC_MESSAGES/sphinx.mo b/sphinx/locale/ar/LC_MESSAGES/sphinx.mo index 450e34189..8f98aea2d 100644 Binary files a/sphinx/locale/ar/LC_MESSAGES/sphinx.mo and b/sphinx/locale/ar/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/ar/LC_MESSAGES/sphinx.po b/sphinx/locale/ar/LC_MESSAGES/sphinx.po index 4e608ceca..4c7f05933 100644 --- a/sphinx/locale/ar/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/ar/LC_MESSAGES/sphinx.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Abdullah ahmed , 2020\n" "Language-Team: Arabic (http://www.transifex.com/sphinx-doc/sphinx-1/language/ar/)\n" @@ -1884,7 +1884,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3100,58 +3100,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "مثال" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "أمثلة" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "ملاحظات" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "مراجع" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/bg/LC_MESSAGES/sphinx.mo b/sphinx/locale/bg/LC_MESSAGES/sphinx.mo index ad35e7b4e..94e3c369e 100644 Binary files a/sphinx/locale/bg/LC_MESSAGES/sphinx.mo and b/sphinx/locale/bg/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/bg/LC_MESSAGES/sphinx.po b/sphinx/locale/bg/LC_MESSAGES/sphinx.po index cbdcd95dd..dcc801dd4 100644 --- a/sphinx/locale/bg/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/bg/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Bulgarian (http://www.transifex.com/sphinx-doc/sphinx-1/language/bg/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/bn/LC_MESSAGES/sphinx.mo b/sphinx/locale/bn/LC_MESSAGES/sphinx.mo index 0a152b483..94c664cf6 100644 Binary files a/sphinx/locale/bn/LC_MESSAGES/sphinx.mo and b/sphinx/locale/bn/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/bn/LC_MESSAGES/sphinx.po b/sphinx/locale/bn/LC_MESSAGES/sphinx.po index 9d0f00e6f..e9bcbe078 100644 --- a/sphinx/locale/bn/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/bn/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FIRST AUTHOR , 2009\n" "Language-Team: Bengali (http://www.transifex.com/sphinx-doc/sphinx-1/language/bn/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "প্যারামিটার" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/ca/LC_MESSAGES/sphinx.mo b/sphinx/locale/ca/LC_MESSAGES/sphinx.mo index cbe5b6db7..dcede0b91 100644 Binary files a/sphinx/locale/ca/LC_MESSAGES/sphinx.mo and b/sphinx/locale/ca/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/ca/LC_MESSAGES/sphinx.po b/sphinx/locale/ca/LC_MESSAGES/sphinx.po index f396559ad..1367dae86 100644 --- a/sphinx/locale/ca/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/ca/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FIRST AUTHOR , 2009\n" "Language-Team: Catalan (http://www.transifex.com/sphinx-doc/sphinx-1/language/ca/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Paràmetres" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/cak/LC_MESSAGES/sphinx.mo b/sphinx/locale/cak/LC_MESSAGES/sphinx.mo index 989a4bd3d..e82b6bad7 100644 Binary files a/sphinx/locale/cak/LC_MESSAGES/sphinx.mo and b/sphinx/locale/cak/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/cak/LC_MESSAGES/sphinx.po b/sphinx/locale/cak/LC_MESSAGES/sphinx.po index 8b07c31f4..fee0ac6b5 100644 --- a/sphinx/locale/cak/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/cak/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Julien Malard , 2019\n" "Language-Team: Kaqchikel (http://www.transifex.com/sphinx-doc/sphinx-1/language/cak/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Jalajöj" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "Tz'etb'äl" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Tz'etb'äl" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "Jalajöj chïk" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/cs/LC_MESSAGES/sphinx.mo b/sphinx/locale/cs/LC_MESSAGES/sphinx.mo index 767a37eac..18790b2d7 100644 Binary files a/sphinx/locale/cs/LC_MESSAGES/sphinx.mo and b/sphinx/locale/cs/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/cs/LC_MESSAGES/sphinx.po b/sphinx/locale/cs/LC_MESSAGES/sphinx.po index 48b0da073..eb9a534f7 100644 --- a/sphinx/locale/cs/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/cs/LC_MESSAGES/sphinx.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Vilibald W. , 2014-2015\n" "Language-Team: Czech (http://www.transifex.com/sphinx-doc/sphinx-1/language/cs/)\n" @@ -1884,7 +1884,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametry" @@ -3100,58 +3100,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/cy/LC_MESSAGES/sphinx.mo b/sphinx/locale/cy/LC_MESSAGES/sphinx.mo index cd4531707..102717ce7 100644 Binary files a/sphinx/locale/cy/LC_MESSAGES/sphinx.mo and b/sphinx/locale/cy/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/cy/LC_MESSAGES/sphinx.po b/sphinx/locale/cy/LC_MESSAGES/sphinx.po index 82cb44908..bfdd4e8ae 100644 --- a/sphinx/locale/cy/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/cy/LC_MESSAGES/sphinx.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Geraint Palmer , 2016\n" "Language-Team: Welsh (http://www.transifex.com/sphinx-doc/sphinx-1/language/cy/)\n" @@ -1884,7 +1884,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Paramedrau" @@ -3100,58 +3100,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/da/LC_MESSAGES/sphinx.mo b/sphinx/locale/da/LC_MESSAGES/sphinx.mo index f180098ee..82daaf047 100644 Binary files a/sphinx/locale/da/LC_MESSAGES/sphinx.mo and b/sphinx/locale/da/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/da/LC_MESSAGES/sphinx.po b/sphinx/locale/da/LC_MESSAGES/sphinx.po index 1245ac694..fbd327a9b 100644 --- a/sphinx/locale/da/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/da/LC_MESSAGES/sphinx.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Komiya Takeshi , 2021\n" "Language-Team: Danish (http://www.transifex.com/sphinx-doc/sphinx-1/language/da/)\n" @@ -1886,7 +1886,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametre" @@ -3102,58 +3102,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Nøgleordsargumenter" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Eksempler" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "Andre parametre" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "Referencer" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/de/LC_MESSAGES/sphinx.mo b/sphinx/locale/de/LC_MESSAGES/sphinx.mo index c0d8f429a..b180ea6f2 100644 Binary files a/sphinx/locale/de/LC_MESSAGES/sphinx.mo and b/sphinx/locale/de/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/de/LC_MESSAGES/sphinx.po b/sphinx/locale/de/LC_MESSAGES/sphinx.po index a8d826d90..f356712c2 100644 --- a/sphinx/locale/de/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/de/LC_MESSAGES/sphinx.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Jean-François B. , 2018\n" "Language-Team: German (http://www.transifex.com/sphinx-doc/sphinx-1/language/de/)\n" @@ -1886,7 +1886,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parameter" @@ -3102,58 +3102,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/el/LC_MESSAGES/sphinx.mo b/sphinx/locale/el/LC_MESSAGES/sphinx.mo index f6fb0da86..95a323a84 100644 Binary files a/sphinx/locale/el/LC_MESSAGES/sphinx.mo and b/sphinx/locale/el/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/el/LC_MESSAGES/sphinx.po b/sphinx/locale/el/LC_MESSAGES/sphinx.po index ab80de919..b74f2a1cc 100644 --- a/sphinx/locale/el/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/el/LC_MESSAGES/sphinx.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Komiya Takeshi , 2021\n" "Language-Team: Greek (http://www.transifex.com/sphinx-doc/sphinx-1/language/el/)\n" @@ -1885,7 +1885,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Παράμετροι" @@ -3101,58 +3101,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Ορίσματα λέξης-κλειδί" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "Παράδειγμα" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Παραδείγματα" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "Σημειώσεις" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "Άλλες παράμετροι" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "Αναφορές" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "Προειδοποιήσεις" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "Αποδόσεις" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/en_FR/LC_MESSAGES/sphinx.mo b/sphinx/locale/en_FR/LC_MESSAGES/sphinx.mo index c4dfd8e3e..f36e0e68b 100644 Binary files a/sphinx/locale/en_FR/LC_MESSAGES/sphinx.mo and b/sphinx/locale/en_FR/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/en_FR/LC_MESSAGES/sphinx.po b/sphinx/locale/en_FR/LC_MESSAGES/sphinx.po index 53f88416d..7bb0dc6f4 100644 --- a/sphinx/locale/en_FR/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/en_FR/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: English (France) (http://www.transifex.com/sphinx-doc/sphinx-1/language/en_FR/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/en_GB/LC_MESSAGES/sphinx.mo b/sphinx/locale/en_GB/LC_MESSAGES/sphinx.mo index 89a71e439..984ab81a4 100644 Binary files a/sphinx/locale/en_GB/LC_MESSAGES/sphinx.mo and b/sphinx/locale/en_GB/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/en_GB/LC_MESSAGES/sphinx.po b/sphinx/locale/en_GB/LC_MESSAGES/sphinx.po index 74545816b..426b4bf96 100644 --- a/sphinx/locale/en_GB/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/en_GB/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Adam Turner, 2022\n" "Language-Team: English (United Kingdom) (http://www.transifex.com/sphinx-doc/sphinx-1/language/en_GB/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/en_HK/LC_MESSAGES/sphinx.mo b/sphinx/locale/en_HK/LC_MESSAGES/sphinx.mo index 60eeb43cc..c4e0fb31d 100644 Binary files a/sphinx/locale/en_HK/LC_MESSAGES/sphinx.mo and b/sphinx/locale/en_HK/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/en_HK/LC_MESSAGES/sphinx.po b/sphinx/locale/en_HK/LC_MESSAGES/sphinx.po index 180521b6e..9374ed315 100644 --- a/sphinx/locale/en_HK/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/en_HK/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: English (Hong Kong) (http://www.transifex.com/sphinx-doc/sphinx-1/language/en_HK/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/eo/LC_MESSAGES/sphinx.mo b/sphinx/locale/eo/LC_MESSAGES/sphinx.mo index fffce3efc..6f2180fdc 100644 Binary files a/sphinx/locale/eo/LC_MESSAGES/sphinx.mo and b/sphinx/locale/eo/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/eo/LC_MESSAGES/sphinx.po b/sphinx/locale/eo/LC_MESSAGES/sphinx.po index 25da4dfdb..c13a83548 100644 --- a/sphinx/locale/eo/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/eo/LC_MESSAGES/sphinx.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Tatsuro YOKOTA , 2021\n" "Language-Team: Esperanto (http://www.transifex.com/sphinx-doc/sphinx-1/language/eo/)\n" @@ -1884,7 +1884,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametroj" @@ -3100,58 +3100,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "Avertoj" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/es/LC_MESSAGES/sphinx.mo b/sphinx/locale/es/LC_MESSAGES/sphinx.mo index f9193988b..0a7b9c71d 100644 Binary files a/sphinx/locale/es/LC_MESSAGES/sphinx.mo and b/sphinx/locale/es/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/es/LC_MESSAGES/sphinx.po b/sphinx/locale/es/LC_MESSAGES/sphinx.po index 0cc9ab8d8..4123110e0 100644 --- a/sphinx/locale/es/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/es/LC_MESSAGES/sphinx.po @@ -15,7 +15,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Komiya Takeshi , 2016,2021\n" "Language-Team: Spanish (http://www.transifex.com/sphinx-doc/sphinx-1/language/es/)\n" @@ -1890,7 +1890,7 @@ msgid "%s (C %s)" msgstr "%s (C %s)" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parámetros" @@ -3106,58 +3106,58 @@ msgid "" "%(default)s)" msgstr "documentar exactamente los miembros en module __all__ attribute. (por defecto: %(default)s)" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Argumentos de palabras clave" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "Ejemplo" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Ejemplos" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "Notas" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "Otros parámetros" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "Recibe" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "Referencias" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "Avisos" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "Campos" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "conjunto de valores no válidos (falta la llave de cierre): %s" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "conjunto de valor no válido (falta llave de apertura): %s" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "literal de cadena con formato incorrecto (falta la comilla de cierre): %s" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "literal de cadena con formato incorrecto (falta la comilla de apertura): %s" diff --git a/sphinx/locale/et/LC_MESSAGES/sphinx.mo b/sphinx/locale/et/LC_MESSAGES/sphinx.mo index 59f961e99..02ffbcb91 100644 Binary files a/sphinx/locale/et/LC_MESSAGES/sphinx.mo and b/sphinx/locale/et/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/et/LC_MESSAGES/sphinx.po b/sphinx/locale/et/LC_MESSAGES/sphinx.po index 0a4ac6594..45c3d2198 100644 --- a/sphinx/locale/et/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/et/LC_MESSAGES/sphinx.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Ivar Smolin , 2013-2022\n" "Language-Team: Estonian (http://www.transifex.com/sphinx-doc/sphinx-1/language/et/)\n" @@ -1886,7 +1886,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parameetrid" @@ -3102,58 +3102,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Võtmesõnadega argumendid" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "Näide" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Näited" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "Märkused" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/eu/LC_MESSAGES/sphinx.mo b/sphinx/locale/eu/LC_MESSAGES/sphinx.mo index 225a763be..a2d47c381 100644 Binary files a/sphinx/locale/eu/LC_MESSAGES/sphinx.mo and b/sphinx/locale/eu/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/eu/LC_MESSAGES/sphinx.po b/sphinx/locale/eu/LC_MESSAGES/sphinx.po index 8f5ea0324..fed6ef6b0 100644 --- a/sphinx/locale/eu/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/eu/LC_MESSAGES/sphinx.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Asier Iturralde Sarasola , 2018\n" "Language-Team: Basque (http://www.transifex.com/sphinx-doc/sphinx-1/language/eu/)\n" @@ -1884,7 +1884,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametroak" @@ -3100,58 +3100,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/fa/LC_MESSAGES/sphinx.mo b/sphinx/locale/fa/LC_MESSAGES/sphinx.mo index 4818aaeab..0d70baf88 100644 Binary files a/sphinx/locale/fa/LC_MESSAGES/sphinx.mo and b/sphinx/locale/fa/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/fa/LC_MESSAGES/sphinx.po b/sphinx/locale/fa/LC_MESSAGES/sphinx.po index ceac9becd..7366329c0 100644 --- a/sphinx/locale/fa/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/fa/LC_MESSAGES/sphinx.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Hadi F , 2020-2021\n" "Language-Team: Persian (http://www.transifex.com/sphinx-doc/sphinx-1/language/fa/)\n" @@ -1886,7 +1886,7 @@ msgid "%s (C %s)" msgstr "%s (C %s)" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "پارامترها" @@ -3102,58 +3102,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "نشانوندهای کلیدی" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "مثال" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "نمونه‎ها" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "یادداشت‌ها" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "مؤلّفه‌های دیگر" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "دریافت‌ها" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "منابع" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "هشدارها" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "فرآورده" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "مقدار نامعتبر تعیین شده (بدون کمانک انتهایی): %s" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "مقدار نامعتبر تعیین شده (بدون کمانک ابتدایی): %s" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "رشته‌متن ادبی ناقص (بدون علامت نقل‌قول انتهایی): %s" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "رشته‌متن ادبی ناقص (بدون علامت نقل‌قول ابتدایی): %s" diff --git a/sphinx/locale/fi/LC_MESSAGES/sphinx.mo b/sphinx/locale/fi/LC_MESSAGES/sphinx.mo index bcef749f4..e8d1c76fc 100644 Binary files a/sphinx/locale/fi/LC_MESSAGES/sphinx.mo and b/sphinx/locale/fi/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/fi/LC_MESSAGES/sphinx.po b/sphinx/locale/fi/LC_MESSAGES/sphinx.po index 5e968662e..7a23d85ea 100644 --- a/sphinx/locale/fi/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/fi/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FIRST AUTHOR , 2009\n" "Language-Team: Finnish (http://www.transifex.com/sphinx-doc/sphinx-1/language/fi/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/fr/LC_MESSAGES/sphinx.mo b/sphinx/locale/fr/LC_MESSAGES/sphinx.mo index 163c198e9..49b3cac26 100644 Binary files a/sphinx/locale/fr/LC_MESSAGES/sphinx.mo and b/sphinx/locale/fr/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/fr/LC_MESSAGES/sphinx.po b/sphinx/locale/fr/LC_MESSAGES/sphinx.po index eeceaa823..a96e0a75b 100644 --- a/sphinx/locale/fr/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/fr/LC_MESSAGES/sphinx.po @@ -34,7 +34,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Jean-François B. , 2017-2019,2022\n" "Language-Team: French (http://www.transifex.com/sphinx-doc/sphinx-1/language/fr/)\n" @@ -1909,7 +1909,7 @@ msgid "%s (C %s)" msgstr "%s (C %s)" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Paramètres" @@ -3125,58 +3125,58 @@ msgid "" "%(default)s)" msgstr "documenter exactement les membres dans l'attribut __all__ du module. (par défaut : %(default)s)" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Arguments de mots-clés" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "Exemple" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Exemples" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "Notes" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "Autres paramètres" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "Reçoit" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "Références" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "Avertissements" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "Yields" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "ensemble invalide de valeurs (accolade fermante manquante) : %s" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "ensemble invalide de valeurs (accolade ouvrante manquante) :%s" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "chaîne littérale malformée (guillemet fermant manquant) : %s" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "chaîne littérale malformée (guillemet ouvrant manquant) : %s" diff --git a/sphinx/locale/fr_FR/LC_MESSAGES/sphinx.mo b/sphinx/locale/fr_FR/LC_MESSAGES/sphinx.mo index f188a9044..9daa3cb4c 100644 Binary files a/sphinx/locale/fr_FR/LC_MESSAGES/sphinx.mo and b/sphinx/locale/fr_FR/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/fr_FR/LC_MESSAGES/sphinx.po b/sphinx/locale/fr_FR/LC_MESSAGES/sphinx.po index 7a0c9f013..b14d6d99b 100644 --- a/sphinx/locale/fr_FR/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/fr_FR/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: French (France) (http://www.transifex.com/sphinx-doc/sphinx-1/language/fr_FR/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/he/LC_MESSAGES/sphinx.mo b/sphinx/locale/he/LC_MESSAGES/sphinx.mo index 1eb73dbd5..f91166d94 100644 Binary files a/sphinx/locale/he/LC_MESSAGES/sphinx.mo and b/sphinx/locale/he/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/he/LC_MESSAGES/sphinx.po b/sphinx/locale/he/LC_MESSAGES/sphinx.po index 8756257a9..565a0de1e 100644 --- a/sphinx/locale/he/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/he/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FIRST AUTHOR , 2011\n" "Language-Team: Hebrew (http://www.transifex.com/sphinx-doc/sphinx-1/language/he/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "פרמטרים" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/hi/LC_MESSAGES/sphinx.mo b/sphinx/locale/hi/LC_MESSAGES/sphinx.mo index c13e7213f..e7e9e84dc 100644 Binary files a/sphinx/locale/hi/LC_MESSAGES/sphinx.mo and b/sphinx/locale/hi/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/hi/LC_MESSAGES/sphinx.po b/sphinx/locale/hi/LC_MESSAGES/sphinx.po index 59425404f..a3ea658fa 100644 --- a/sphinx/locale/hi/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/hi/LC_MESSAGES/sphinx.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Sumanjali Damarla , 2020\n" "Language-Team: Hindi (http://www.transifex.com/sphinx-doc/sphinx-1/language/hi/)\n" @@ -1886,7 +1886,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "मापदण्ड" @@ -3102,58 +3102,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "मुख्य शब्दों के चर-पद" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "उदाहरण" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "कुछ उदाहरण" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "टिप्पणियाँ" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "अन्य मापदण्ड" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "सन्दर्भ" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "चेतावनी देता है" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "मिलता है" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/hi_IN/LC_MESSAGES/sphinx.mo b/sphinx/locale/hi_IN/LC_MESSAGES/sphinx.mo index 544128fdc..e7b5c3d86 100644 Binary files a/sphinx/locale/hi_IN/LC_MESSAGES/sphinx.mo and b/sphinx/locale/hi_IN/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/hi_IN/LC_MESSAGES/sphinx.po b/sphinx/locale/hi_IN/LC_MESSAGES/sphinx.po index a1074832b..edb377ea5 100644 --- a/sphinx/locale/hi_IN/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/hi_IN/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Hindi (India) (http://www.transifex.com/sphinx-doc/sphinx-1/language/hi_IN/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/hr/LC_MESSAGES/sphinx.mo b/sphinx/locale/hr/LC_MESSAGES/sphinx.mo index e961aac66..619e3f136 100644 Binary files a/sphinx/locale/hr/LC_MESSAGES/sphinx.mo and b/sphinx/locale/hr/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/hr/LC_MESSAGES/sphinx.po b/sphinx/locale/hr/LC_MESSAGES/sphinx.po index 447a3254a..31ebe2ac5 100644 --- a/sphinx/locale/hr/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/hr/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Mario Šarić, 2015-2020\n" "Language-Team: Croatian (http://www.transifex.com/sphinx-doc/sphinx-1/language/hr/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametri" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Argumenti" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Primjeri" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/hu/LC_MESSAGES/sphinx.mo b/sphinx/locale/hu/LC_MESSAGES/sphinx.mo index 45ba10830..52251d096 100644 Binary files a/sphinx/locale/hu/LC_MESSAGES/sphinx.mo and b/sphinx/locale/hu/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/hu/LC_MESSAGES/sphinx.po b/sphinx/locale/hu/LC_MESSAGES/sphinx.po index 0a9dfba91..af49f001c 100644 --- a/sphinx/locale/hu/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/hu/LC_MESSAGES/sphinx.po @@ -13,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Balázs Úr, 2020\n" "Language-Team: Hungarian (http://www.transifex.com/sphinx-doc/sphinx-1/language/hu/)\n" @@ -1888,7 +1888,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Paraméterek" @@ -3104,58 +3104,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/id/LC_MESSAGES/sphinx.mo b/sphinx/locale/id/LC_MESSAGES/sphinx.mo index a1439c807..cff236c07 100644 Binary files a/sphinx/locale/id/LC_MESSAGES/sphinx.mo and b/sphinx/locale/id/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/id/LC_MESSAGES/sphinx.po b/sphinx/locale/id/LC_MESSAGES/sphinx.po index 64513de65..6932bb1eb 100644 --- a/sphinx/locale/id/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/id/LC_MESSAGES/sphinx.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: oon arfiandwi , 2019-2020\n" "Language-Team: Indonesian (http://www.transifex.com/sphinx-doc/sphinx-1/language/id/)\n" @@ -1887,7 +1887,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parameter" @@ -3103,58 +3103,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Argumen Kata Kunci" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "Contoh" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Contoh-contoh" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "Catatan" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "Parameter lainnya" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "Referensi" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "Peringatkan" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "Hasil" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/is/LC_MESSAGES/sphinx.mo b/sphinx/locale/is/LC_MESSAGES/sphinx.mo index 9f8f52fe1..e10ec7b4e 100644 Binary files a/sphinx/locale/is/LC_MESSAGES/sphinx.mo and b/sphinx/locale/is/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/is/LC_MESSAGES/sphinx.po b/sphinx/locale/is/LC_MESSAGES/sphinx.po index 7400d22ea..73e6b1ba6 100644 --- a/sphinx/locale/is/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/is/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Tryggvi Kalman , 2021\n" "Language-Team: Icelandic (http://www.transifex.com/sphinx-doc/sphinx-1/language/is/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/it/LC_MESSAGES/sphinx.mo b/sphinx/locale/it/LC_MESSAGES/sphinx.mo index 6438ce1c1..7188d1fe8 100644 Binary files a/sphinx/locale/it/LC_MESSAGES/sphinx.mo and b/sphinx/locale/it/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/it/LC_MESSAGES/sphinx.po b/sphinx/locale/it/LC_MESSAGES/sphinx.po index 36cc4f788..18b2ff9e7 100644 --- a/sphinx/locale/it/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/it/LC_MESSAGES/sphinx.po @@ -13,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Antonari Palmio, 2022\n" "Language-Team: Italian (http://www.transifex.com/sphinx-doc/sphinx-1/language/it/)\n" @@ -1888,7 +1888,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametri" @@ -3104,58 +3104,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Argomenti parole chiave" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Esempi" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/ja/LC_MESSAGES/sphinx.mo b/sphinx/locale/ja/LC_MESSAGES/sphinx.mo index d786884e5..884039023 100644 Binary files a/sphinx/locale/ja/LC_MESSAGES/sphinx.mo and b/sphinx/locale/ja/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/ja/LC_MESSAGES/sphinx.po b/sphinx/locale/ja/LC_MESSAGES/sphinx.po index e6bec4952..121086019 100644 --- a/sphinx/locale/ja/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/ja/LC_MESSAGES/sphinx.po @@ -24,7 +24,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Tetsuo Koyama , 2020-2022\n" "Language-Team: Japanese (http://www.transifex.com/sphinx-doc/sphinx-1/language/ja/)\n" @@ -1899,7 +1899,7 @@ msgid "%s (C %s)" msgstr "%s (C %s)" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "パラメータ" @@ -3115,58 +3115,58 @@ msgid "" "%(default)s)" msgstr "モジュール __all__ 属性に含まれるメンバーのみを対象としたドキュメントを作成します。(デフォルト: %(default)s)" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "キーワード引数" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "サンプル" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "サンプル" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "メモ" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "その他のパラメータ" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "受け取る" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "参照" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "警告" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "列挙" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "無効な値セット (終了括弧がありません): %s" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "無効な値セット (開始括弧がありません): %s" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "不正な文字列リテラル (終了引用符がありません): %s" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "不正な文字列リテラル (開始引用符がありません): %s" diff --git a/sphinx/locale/ko/LC_MESSAGES/sphinx.mo b/sphinx/locale/ko/LC_MESSAGES/sphinx.mo index 8b038341a..d79e0ac30 100644 Binary files a/sphinx/locale/ko/LC_MESSAGES/sphinx.mo and b/sphinx/locale/ko/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/ko/LC_MESSAGES/sphinx.po b/sphinx/locale/ko/LC_MESSAGES/sphinx.po index d72c6da0e..a7c5fa84e 100644 --- a/sphinx/locale/ko/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/ko/LC_MESSAGES/sphinx.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: YT H , 2019-2022\n" "Language-Team: Korean (http://www.transifex.com/sphinx-doc/sphinx-1/language/ko/)\n" @@ -1884,7 +1884,7 @@ msgid "%s (C %s)" msgstr "%s (C %s)" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "매개변수" @@ -3100,58 +3100,58 @@ msgid "" "%(default)s)" msgstr "모듈 __all__ 속성의 구성원만 정확히 문서화합니다. (기본값: %(default)s)" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "키워드 매개변수" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "예제" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "예제" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "참고" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "기타 매개변수" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "수신" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "참조" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "경고" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "생성" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "잘못된 값 세트 (닫는 중괄호 누락): %s" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "잘못된 값 세트 (여는 중괄호 누락): %s" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "잘못된 문자열 리터럴 (닫는 따옴표 누락): %s" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "잘못된 문자열 리터럴 (여는 따옴표 누락): %s" diff --git a/sphinx/locale/lt/LC_MESSAGES/sphinx.mo b/sphinx/locale/lt/LC_MESSAGES/sphinx.mo index d3ab089aa..58f22dba4 100644 Binary files a/sphinx/locale/lt/LC_MESSAGES/sphinx.mo and b/sphinx/locale/lt/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/lt/LC_MESSAGES/sphinx.po b/sphinx/locale/lt/LC_MESSAGES/sphinx.po index 11f559177..83901cf17 100644 --- a/sphinx/locale/lt/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/lt/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: DALIUS DOBRAVOLSKAS , 2010\n" "Language-Team: Lithuanian (http://www.transifex.com/sphinx-doc/sphinx-1/language/lt/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametrai" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/lv/LC_MESSAGES/sphinx.mo b/sphinx/locale/lv/LC_MESSAGES/sphinx.mo index 6030f03bd..153a2d12e 100644 Binary files a/sphinx/locale/lv/LC_MESSAGES/sphinx.mo and b/sphinx/locale/lv/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/lv/LC_MESSAGES/sphinx.po b/sphinx/locale/lv/LC_MESSAGES/sphinx.po index 7af7bfd5a..5ca04e58f 100644 --- a/sphinx/locale/lv/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/lv/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Latvian (http://www.transifex.com/sphinx-doc/sphinx-1/language/lv/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametri" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/mk/LC_MESSAGES/sphinx.mo b/sphinx/locale/mk/LC_MESSAGES/sphinx.mo index 14ebff421..395fa926e 100644 Binary files a/sphinx/locale/mk/LC_MESSAGES/sphinx.mo and b/sphinx/locale/mk/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/mk/LC_MESSAGES/sphinx.po b/sphinx/locale/mk/LC_MESSAGES/sphinx.po index 41864ca95..8eb36df2b 100644 --- a/sphinx/locale/mk/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/mk/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Vasil Vangelovski , 2013\n" "Language-Team: Macedonian (http://www.transifex.com/sphinx-doc/sphinx-1/language/mk/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Параметри" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/nb_NO/LC_MESSAGES/sphinx.mo b/sphinx/locale/nb_NO/LC_MESSAGES/sphinx.mo index ec8ce45dd..1973bbe00 100644 Binary files a/sphinx/locale/nb_NO/LC_MESSAGES/sphinx.mo and b/sphinx/locale/nb_NO/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/nb_NO/LC_MESSAGES/sphinx.po b/sphinx/locale/nb_NO/LC_MESSAGES/sphinx.po index 7ee44c25d..fb7215e7c 100644 --- a/sphinx/locale/nb_NO/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/nb_NO/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Norwegian Bokmål (Norway) (http://www.transifex.com/sphinx-doc/sphinx-1/language/nb_NO/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametere" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/ne/LC_MESSAGES/sphinx.mo b/sphinx/locale/ne/LC_MESSAGES/sphinx.mo index 6c944a5ee..d85ffdd0f 100644 Binary files a/sphinx/locale/ne/LC_MESSAGES/sphinx.mo and b/sphinx/locale/ne/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/ne/LC_MESSAGES/sphinx.po b/sphinx/locale/ne/LC_MESSAGES/sphinx.po index 1322696cf..a3303e69d 100644 --- a/sphinx/locale/ne/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/ne/LC_MESSAGES/sphinx.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Komiya Takeshi , 2016\n" "Language-Team: Nepali (http://www.transifex.com/sphinx-doc/sphinx-1/language/ne/)\n" @@ -1884,7 +1884,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parameters" @@ -3100,58 +3100,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/nl/LC_MESSAGES/sphinx.mo b/sphinx/locale/nl/LC_MESSAGES/sphinx.mo index 77c7f5ca7..726b8e667 100644 Binary files a/sphinx/locale/nl/LC_MESSAGES/sphinx.mo and b/sphinx/locale/nl/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/nl/LC_MESSAGES/sphinx.po b/sphinx/locale/nl/LC_MESSAGES/sphinx.po index 059b72b64..9beb70a22 100644 --- a/sphinx/locale/nl/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/nl/LC_MESSAGES/sphinx.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Komiya Takeshi , 2021\n" "Language-Team: Dutch (http://www.transifex.com/sphinx-doc/sphinx-1/language/nl/)\n" @@ -1889,7 +1889,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parameters" @@ -3105,58 +3105,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Sleutelwoordargumenten" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "Verwijzingen" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/pl/LC_MESSAGES/sphinx.mo b/sphinx/locale/pl/LC_MESSAGES/sphinx.mo index 2d0f78a64..1b9a0a749 100644 Binary files a/sphinx/locale/pl/LC_MESSAGES/sphinx.mo and b/sphinx/locale/pl/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/pl/LC_MESSAGES/sphinx.po b/sphinx/locale/pl/LC_MESSAGES/sphinx.po index 681b88d78..53c5efa73 100644 --- a/sphinx/locale/pl/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/pl/LC_MESSAGES/sphinx.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Maciej Olko , 2022\n" "Language-Team: Polish (http://www.transifex.com/sphinx-doc/sphinx-1/language/pl/)\n" @@ -1887,7 +1887,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametry" @@ -3103,58 +3103,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Argumenty Nazwane" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "Przykład" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Przykłady" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "Uwagi" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "Pozostałe parametry" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/pt/LC_MESSAGES/sphinx.mo b/sphinx/locale/pt/LC_MESSAGES/sphinx.mo index 342be5632..d43d4e97d 100644 Binary files a/sphinx/locale/pt/LC_MESSAGES/sphinx.mo and b/sphinx/locale/pt/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/pt/LC_MESSAGES/sphinx.po b/sphinx/locale/pt/LC_MESSAGES/sphinx.po index e481c1e81..8ee73eb5b 100644 --- a/sphinx/locale/pt/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/pt/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Portuguese (http://www.transifex.com/sphinx-doc/sphinx-1/language/pt/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/pt_BR/LC_MESSAGES/sphinx.mo b/sphinx/locale/pt_BR/LC_MESSAGES/sphinx.mo index 01823b3f5..26bd1548f 100644 Binary files a/sphinx/locale/pt_BR/LC_MESSAGES/sphinx.mo and b/sphinx/locale/pt_BR/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/pt_BR/LC_MESSAGES/sphinx.po b/sphinx/locale/pt_BR/LC_MESSAGES/sphinx.po index 9093c8274..3cf7c373b 100644 --- a/sphinx/locale/pt_BR/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/pt_BR/LC_MESSAGES/sphinx.po @@ -13,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Rafael Fontenelle , 2019-2022\n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/sphinx-doc/sphinx-1/language/pt_BR/)\n" @@ -1888,7 +1888,7 @@ msgid "%s (C %s)" msgstr "%s (C %s)" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parâmetros" @@ -3104,58 +3104,58 @@ msgid "" "%(default)s)" msgstr "documenta exatamente os membros no módulo atributo __all__. (padrão: %(default)s)" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Argumentos de Palavras-chave" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "Exemplo" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Exemplos" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "Notas" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "Outros Parâmetros" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "Recebe" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "Referências" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "Avisos" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "Yields" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "valor inválido definido (faltando chave de fechamento): %s" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "valor inválido definido (faltando chave de abertura): %s" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "string literal malformada (faltando aspas de fechamento): %s" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "string literal malformada (faltando aspas de abertura): %s" diff --git a/sphinx/locale/pt_PT/LC_MESSAGES/sphinx.mo b/sphinx/locale/pt_PT/LC_MESSAGES/sphinx.mo index 4aafd222d..536b14f17 100644 Binary files a/sphinx/locale/pt_PT/LC_MESSAGES/sphinx.mo and b/sphinx/locale/pt_PT/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/pt_PT/LC_MESSAGES/sphinx.po b/sphinx/locale/pt_PT/LC_MESSAGES/sphinx.po index 057443336..605348de9 100644 --- a/sphinx/locale/pt_PT/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/pt_PT/LC_MESSAGES/sphinx.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Komiya Takeshi , 2016\n" "Language-Team: Portuguese (Portugal) (http://www.transifex.com/sphinx-doc/sphinx-1/language/pt_PT/)\n" @@ -1884,7 +1884,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parâmetros" @@ -3100,58 +3100,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/ro/LC_MESSAGES/sphinx.mo b/sphinx/locale/ro/LC_MESSAGES/sphinx.mo index c75901d45..7dd835f37 100644 Binary files a/sphinx/locale/ro/LC_MESSAGES/sphinx.mo and b/sphinx/locale/ro/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/ro/LC_MESSAGES/sphinx.po b/sphinx/locale/ro/LC_MESSAGES/sphinx.po index 43134869c..6cf0a4dd6 100644 --- a/sphinx/locale/ro/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/ro/LC_MESSAGES/sphinx.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Razvan Stefanescu , 2015-2017\n" "Language-Team: Romanian (http://www.transifex.com/sphinx-doc/sphinx-1/language/ro/)\n" @@ -1884,7 +1884,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametrii" @@ -3100,58 +3100,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/ru/LC_MESSAGES/sphinx.mo b/sphinx/locale/ru/LC_MESSAGES/sphinx.mo index 1d85b366d..178284d9a 100644 Binary files a/sphinx/locale/ru/LC_MESSAGES/sphinx.mo and b/sphinx/locale/ru/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/ru/LC_MESSAGES/sphinx.po b/sphinx/locale/ru/LC_MESSAGES/sphinx.po index 188a0b424..2ecc7b872 100644 --- a/sphinx/locale/ru/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/ru/LC_MESSAGES/sphinx.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Il'ya , 2022\n" "Language-Team: Russian (http://www.transifex.com/sphinx-doc/sphinx-1/language/ru/)\n" @@ -1889,7 +1889,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Параметры" @@ -3105,58 +3105,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Именованные аргументы" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "Пример" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Примеры" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "Заметки" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "Другие параметры" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "Предупрждения" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/si/LC_MESSAGES/sphinx.mo b/sphinx/locale/si/LC_MESSAGES/sphinx.mo index 4fd575e2f..7d6144143 100644 Binary files a/sphinx/locale/si/LC_MESSAGES/sphinx.mo and b/sphinx/locale/si/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/si/LC_MESSAGES/sphinx.po b/sphinx/locale/si/LC_MESSAGES/sphinx.po index 94505b31e..7fd076b55 100644 --- a/sphinx/locale/si/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/si/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: callkalpa , 2013\n" "Language-Team: Sinhala (http://www.transifex.com/sphinx-doc/sphinx-1/language/si/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "පරාමිතීන්" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/sk/LC_MESSAGES/sphinx.mo b/sphinx/locale/sk/LC_MESSAGES/sphinx.mo index 6d60a4ef6..ea1c8697f 100644 Binary files a/sphinx/locale/sk/LC_MESSAGES/sphinx.mo and b/sphinx/locale/sk/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/sk/LC_MESSAGES/sphinx.po b/sphinx/locale/sk/LC_MESSAGES/sphinx.po index caa2f6193..a425e23e0 100644 --- a/sphinx/locale/sk/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/sk/LC_MESSAGES/sphinx.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Slavko , 2013-2019,2021\n" "Language-Team: Slovak (http://www.transifex.com/sphinx-doc/sphinx-1/language/sk/)\n" @@ -1885,7 +1885,7 @@ msgid "%s (C %s)" msgstr "%s (C %s)" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametre" @@ -3101,58 +3101,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Argumenty kľúčových slov" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "Príklad" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Príklady" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "Poznámky" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "Ostatné parametre" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "Varovania" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "neplatná hodnota množiny (chýba koncová zátvorka): %s" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "neplatná hodnota množiny (chýba začiatočná zátvorka): %s" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "neplatná textová konštanta (chýba koncová úvodzovka): %s" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "neplatná textová konštanta (chýba začiatočná úvodzovka): %s" diff --git a/sphinx/locale/sl/LC_MESSAGES/sphinx.mo b/sphinx/locale/sl/LC_MESSAGES/sphinx.mo index 227f25f3a..939681c31 100644 Binary files a/sphinx/locale/sl/LC_MESSAGES/sphinx.mo and b/sphinx/locale/sl/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/sl/LC_MESSAGES/sphinx.po b/sphinx/locale/sl/LC_MESSAGES/sphinx.po index 342ae8771..510ff859e 100644 --- a/sphinx/locale/sl/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/sl/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Slovenian (http://www.transifex.com/sphinx-doc/sphinx-1/language/sl/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametri" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/sphinx.pot b/sphinx/locale/sphinx.pot index 7fccf7d90..21847bf03 100644 --- a/sphinx/locale/sphinx.pot +++ b/sphinx/locale/sphinx.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx 5.2.0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-14 00:20+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1900,7 +1900,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3121,58 +3121,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/sq/LC_MESSAGES/sphinx.mo b/sphinx/locale/sq/LC_MESSAGES/sphinx.mo index 5fc91424a..8950dd91c 100644 Binary files a/sphinx/locale/sq/LC_MESSAGES/sphinx.mo and b/sphinx/locale/sq/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/sq/LC_MESSAGES/sphinx.po b/sphinx/locale/sq/LC_MESSAGES/sphinx.po index 7c7b86309..c9a75d51a 100644 --- a/sphinx/locale/sq/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/sq/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Besnik Bleta , 2021-2022\n" "Language-Team: Albanian (http://www.transifex.com/sphinx-doc/sphinx-1/language/sq/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "%s (C %s)" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametra" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "Argumente Fjalëkyçi" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "Shembull" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Shembuj" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "Shënime" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "Parametra të Tjerë" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "Referenca" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "Sinjalizime" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "u caktua vlerë e pavlefshme (mungon kllapë mbyllëse): %s" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "u caktua vlerë e pavlefshme (mungon kllapë hapëse): %s" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "shprehje vargu e keqformuar (mungon thonjëz mbyllëse): %s" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "shprehje vargu e keqformuar (mungon thonjëz hapëse): %s" diff --git a/sphinx/locale/sr/LC_MESSAGES/sphinx.mo b/sphinx/locale/sr/LC_MESSAGES/sphinx.mo index 475035ee3..9f047f5e5 100644 Binary files a/sphinx/locale/sr/LC_MESSAGES/sphinx.mo and b/sphinx/locale/sr/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/sr/LC_MESSAGES/sphinx.po b/sphinx/locale/sr/LC_MESSAGES/sphinx.po index a1671cb29..f882ef33c 100644 --- a/sphinx/locale/sr/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/sr/LC_MESSAGES/sphinx.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Vladimir Milovanović , 2020\n" "Language-Team: Serbian (http://www.transifex.com/sphinx-doc/sphinx-1/language/sr/)\n" @@ -1884,7 +1884,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Параметри" @@ -3100,58 +3100,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "Пример" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Примери" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "Белешке" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "Упозорења" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/sr@latin/LC_MESSAGES/sphinx.mo b/sphinx/locale/sr@latin/LC_MESSAGES/sphinx.mo index 2b1a09edc..d70f15dab 100644 Binary files a/sphinx/locale/sr@latin/LC_MESSAGES/sphinx.mo and b/sphinx/locale/sr@latin/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/sr@latin/LC_MESSAGES/sphinx.po b/sphinx/locale/sr@latin/LC_MESSAGES/sphinx.po index 4bc4c21cf..7ab6d4640 100644 --- a/sphinx/locale/sr@latin/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/sr@latin/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Serbian (Latin) (http://www.transifex.com/sphinx-doc/sphinx-1/language/sr@latin/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/sr_RS/LC_MESSAGES/sphinx.mo b/sphinx/locale/sr_RS/LC_MESSAGES/sphinx.mo index 7f8032d96..c60ac2706 100644 Binary files a/sphinx/locale/sr_RS/LC_MESSAGES/sphinx.mo and b/sphinx/locale/sr_RS/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/sr_RS/LC_MESSAGES/sphinx.po b/sphinx/locale/sr_RS/LC_MESSAGES/sphinx.po index e5ba914df..8bd67ef37 100644 --- a/sphinx/locale/sr_RS/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/sr_RS/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Serbian (Serbia) (http://www.transifex.com/sphinx-doc/sphinx-1/language/sr_RS/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/sv/LC_MESSAGES/sphinx.mo b/sphinx/locale/sv/LC_MESSAGES/sphinx.mo index 2bf5ffb68..959e9915c 100644 Binary files a/sphinx/locale/sv/LC_MESSAGES/sphinx.mo and b/sphinx/locale/sv/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/sv/LC_MESSAGES/sphinx.po b/sphinx/locale/sv/LC_MESSAGES/sphinx.po index 81ac77325..2af92d2e4 100644 --- a/sphinx/locale/sv/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/sv/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Swedish (http://www.transifex.com/sphinx-doc/sphinx-1/language/sv/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametrar" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/ta/LC_MESSAGES/sphinx.mo b/sphinx/locale/ta/LC_MESSAGES/sphinx.mo index b6fa154e5..9fb510df1 100644 Binary files a/sphinx/locale/ta/LC_MESSAGES/sphinx.mo and b/sphinx/locale/ta/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/ta/LC_MESSAGES/sphinx.po b/sphinx/locale/ta/LC_MESSAGES/sphinx.po index 266ea7cd5..e2f75b317 100644 --- a/sphinx/locale/ta/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/ta/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Julien Malard , 2019\n" "Language-Team: Tamil (http://www.transifex.com/sphinx-doc/sphinx-1/language/ta/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/te/LC_MESSAGES/sphinx.mo b/sphinx/locale/te/LC_MESSAGES/sphinx.mo index 76b3dc226..5c800ee57 100644 Binary files a/sphinx/locale/te/LC_MESSAGES/sphinx.mo and b/sphinx/locale/te/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/te/LC_MESSAGES/sphinx.po b/sphinx/locale/te/LC_MESSAGES/sphinx.po index 1b30761bd..6b1ede436 100644 --- a/sphinx/locale/te/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/te/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Telugu (http://www.transifex.com/sphinx-doc/sphinx-1/language/te/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/tr/LC_MESSAGES/sphinx.mo b/sphinx/locale/tr/LC_MESSAGES/sphinx.mo index 38cdbfaeb..7f3b63c67 100644 Binary files a/sphinx/locale/tr/LC_MESSAGES/sphinx.mo and b/sphinx/locale/tr/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/tr/LC_MESSAGES/sphinx.po b/sphinx/locale/tr/LC_MESSAGES/sphinx.po index f3687976f..f3e95b467 100644 --- a/sphinx/locale/tr/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/tr/LC_MESSAGES/sphinx.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: BouRock, 2020\n" "Language-Team: Turkish (http://www.transifex.com/sphinx-doc/sphinx-1/language/tr/)\n" @@ -1886,7 +1886,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Parametreler" @@ -3102,58 +3102,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "Örnek" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Örnekler" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "Notlar" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "Diğer Parametreler" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "Kaynaklar" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "Uyarılar" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "Getiriler" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/uk_UA/LC_MESSAGES/sphinx.mo b/sphinx/locale/uk_UA/LC_MESSAGES/sphinx.mo index 1f968fe40..4821ebbbf 100644 Binary files a/sphinx/locale/uk_UA/LC_MESSAGES/sphinx.mo and b/sphinx/locale/uk_UA/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/uk_UA/LC_MESSAGES/sphinx.po b/sphinx/locale/uk_UA/LC_MESSAGES/sphinx.po index 247a86cdb..4265a4333 100644 --- a/sphinx/locale/uk_UA/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/uk_UA/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Petro Sasnyk , 2009\n" "Language-Team: Ukrainian (Ukraine) (http://www.transifex.com/sphinx-doc/sphinx-1/language/uk_UA/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Параметри" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/ur/LC_MESSAGES/sphinx.mo b/sphinx/locale/ur/LC_MESSAGES/sphinx.mo index ba9554510..b51e6084b 100644 Binary files a/sphinx/locale/ur/LC_MESSAGES/sphinx.mo and b/sphinx/locale/ur/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/ur/LC_MESSAGES/sphinx.po b/sphinx/locale/ur/LC_MESSAGES/sphinx.po index c8fa9b65e..5e580016e 100644 --- a/sphinx/locale/ur/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/ur/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Urdu (http://www.transifex.com/sphinx-doc/sphinx-1/language/ur/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/vi/LC_MESSAGES/sphinx.mo b/sphinx/locale/vi/LC_MESSAGES/sphinx.mo index 871f767f4..fd4536db5 100644 Binary files a/sphinx/locale/vi/LC_MESSAGES/sphinx.mo and b/sphinx/locale/vi/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/vi/LC_MESSAGES/sphinx.po b/sphinx/locale/vi/LC_MESSAGES/sphinx.po index 75b1b2d2f..b0de2608a 100644 --- a/sphinx/locale/vi/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/vi/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Hoat Le Van , 2014\n" "Language-Team: Vietnamese (http://www.transifex.com/sphinx-doc/sphinx-1/language/vi/)\n" @@ -1883,7 +1883,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "Tham số" @@ -3099,58 +3099,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "Các ví dụ" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/yue/LC_MESSAGES/sphinx.mo b/sphinx/locale/yue/LC_MESSAGES/sphinx.mo index 253ea1d24..8c3bfa773 100644 Binary files a/sphinx/locale/yue/LC_MESSAGES/sphinx.mo and b/sphinx/locale/yue/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/yue/LC_MESSAGES/sphinx.po b/sphinx/locale/yue/LC_MESSAGES/sphinx.po index 4571a5d28..2bd41fe00 100644 --- a/sphinx/locale/yue/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/yue/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Cantonese (http://www.transifex.com/sphinx-doc/sphinx-1/language/yue/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.mo b/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.mo index d7159bf4d..4da4015c0 100644 Binary files a/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.mo and b/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.po b/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.po index f876fbf81..3d3b1ad9a 100644 --- a/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.po @@ -24,7 +24,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Yinian Chin , 2013,2018,2020,2022\n" "Language-Team: Chinese (China) (http://www.transifex.com/sphinx-doc/sphinx-1/language/zh_CN/)\n" @@ -1899,7 +1899,7 @@ msgid "%s (C %s)" msgstr "%s(C %s)" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "参数" @@ -3115,58 +3115,58 @@ msgid "" "%(default)s)" msgstr "仅生成模块中 __all__ 属性成员的文档。(默认值:%(default)s)" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "关键字参数" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "示例" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "示例" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "备注" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "其他参数" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "接受" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "引用" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "警告" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "生成器" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "无效的值集合(缺少右括号):%s" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "无效的值集合(缺少左括号):%s" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "异常的字符串字面量(缺少右引号):%s" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "异常的字符串字面量(缺少左引号):%s" diff --git a/sphinx/locale/zh_HK/LC_MESSAGES/sphinx.mo b/sphinx/locale/zh_HK/LC_MESSAGES/sphinx.mo index aa2d5c168..b61ccf3b6 100644 Binary files a/sphinx/locale/zh_HK/LC_MESSAGES/sphinx.mo and b/sphinx/locale/zh_HK/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/zh_HK/LC_MESSAGES/sphinx.po b/sphinx/locale/zh_HK/LC_MESSAGES/sphinx.po index bf2407221..df3e8690d 100644 --- a/sphinx/locale/zh_HK/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/zh_HK/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Chinese (Hong Kong) (http://www.transifex.com/sphinx-doc/sphinx-1/language/zh_HK/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/zh_TW.Big5/LC_MESSAGES/sphinx.mo b/sphinx/locale/zh_TW.Big5/LC_MESSAGES/sphinx.mo index 670c0c912..3b66f60c3 100644 Binary files a/sphinx/locale/zh_TW.Big5/LC_MESSAGES/sphinx.mo and b/sphinx/locale/zh_TW.Big5/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/zh_TW.Big5/LC_MESSAGES/sphinx.po b/sphinx/locale/zh_TW.Big5/LC_MESSAGES/sphinx.po index cb15409b2..9e0f31c43 100644 --- a/sphinx/locale/zh_TW.Big5/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/zh_TW.Big5/LC_MESSAGES/sphinx.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Chinese (Taiwan) (Big5) (http://www.transifex.com/sphinx-doc/sphinx-1/language/zh_TW.Big5/)\n" @@ -1882,7 +1882,7 @@ msgid "%s (C %s)" msgstr "" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "" @@ -3098,58 +3098,58 @@ msgid "" "%(default)s)" msgstr "" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "" diff --git a/sphinx/locale/zh_TW/LC_MESSAGES/sphinx.mo b/sphinx/locale/zh_TW/LC_MESSAGES/sphinx.mo index 70e53675e..bd9b19301 100644 Binary files a/sphinx/locale/zh_TW/LC_MESSAGES/sphinx.mo and b/sphinx/locale/zh_TW/LC_MESSAGES/sphinx.mo differ diff --git a/sphinx/locale/zh_TW/LC_MESSAGES/sphinx.po b/sphinx/locale/zh_TW/LC_MESSAGES/sphinx.po index 08e387679..7bf0c3443 100644 --- a/sphinx/locale/zh_TW/LC_MESSAGES/sphinx.po +++ b/sphinx/locale/zh_TW/LC_MESSAGES/sphinx.po @@ -15,7 +15,7 @@ msgid "" msgstr "" "Project-Id-Version: Sphinx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-07-31 00:21+0000\n" +"POT-Creation-Date: 2022-08-07 00:24+0000\n" "PO-Revision-Date: 2013-04-02 08:44+0000\n" "Last-Translator: Steven Hsu , 2021-2022\n" "Language-Team: Chinese (Taiwan) (http://www.transifex.com/sphinx-doc/sphinx-1/language/zh_TW/)\n" @@ -1890,7 +1890,7 @@ msgid "%s (C %s)" msgstr "%s (C %s)" #: sphinx/domains/c.py:3347 sphinx/domains/cpp.py:7419 -#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:749 +#: sphinx/domains/python.py:435 sphinx/ext/napoleon/docstring.py:751 msgid "Parameters" msgstr "參數" @@ -3106,58 +3106,58 @@ msgid "" "%(default)s)" msgstr "文件確實是在模組 __all__ 屬性中的成員。(預設值: %(default)s)" -#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:716 +#: sphinx/ext/napoleon/__init__.py:339 sphinx/ext/napoleon/docstring.py:718 msgid "Keyword Arguments" msgstr "關鍵字引數" -#: sphinx/ext/napoleon/docstring.py:670 +#: sphinx/ext/napoleon/docstring.py:672 msgid "Example" msgstr "範例" -#: sphinx/ext/napoleon/docstring.py:671 +#: sphinx/ext/napoleon/docstring.py:673 msgid "Examples" msgstr "範例" -#: sphinx/ext/napoleon/docstring.py:731 +#: sphinx/ext/napoleon/docstring.py:733 msgid "Notes" msgstr "備註" -#: sphinx/ext/napoleon/docstring.py:740 +#: sphinx/ext/napoleon/docstring.py:742 msgid "Other Parameters" msgstr "其他參數" -#: sphinx/ext/napoleon/docstring.py:776 +#: sphinx/ext/napoleon/docstring.py:778 msgid "Receives" msgstr "接收" -#: sphinx/ext/napoleon/docstring.py:780 +#: sphinx/ext/napoleon/docstring.py:782 msgid "References" msgstr "參照" -#: sphinx/ext/napoleon/docstring.py:812 +#: sphinx/ext/napoleon/docstring.py:814 msgid "Warns" msgstr "警告" -#: sphinx/ext/napoleon/docstring.py:816 +#: sphinx/ext/napoleon/docstring.py:818 msgid "Yields" msgstr "產出" -#: sphinx/ext/napoleon/docstring.py:986 +#: sphinx/ext/napoleon/docstring.py:988 #, python-format msgid "invalid value set (missing closing brace): %s" msgstr "無效的值集合(缺少右括號): %s" -#: sphinx/ext/napoleon/docstring.py:993 +#: sphinx/ext/napoleon/docstring.py:995 #, python-format msgid "invalid value set (missing opening brace): %s" msgstr "無效的值集合(缺少左括號): %s" -#: sphinx/ext/napoleon/docstring.py:1000 +#: sphinx/ext/napoleon/docstring.py:1002 #, python-format msgid "malformed string literal (missing closing quote): %s" msgstr "異常的字串文本(缺少右括號): %s" -#: sphinx/ext/napoleon/docstring.py:1007 +#: sphinx/ext/napoleon/docstring.py:1009 #, python-format msgid "malformed string literal (missing opening quote): %s" msgstr "異常的字串文本(缺少左括號): %s" diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py index ff1135c25..1019400a8 100644 --- a/sphinx/pycode/parser.py +++ b/sphinx/pycode/parser.py @@ -29,7 +29,7 @@ def get_assign_targets(node: ast.AST) -> List[ast.expr]: return [node.target] # type: ignore -def get_lvar_names(node: ast.AST, self: ast.arg = None) -> List[str]: +def get_lvar_names(node: ast.AST, self: Optional[ast.arg] = None) -> List[str]: """Convert assignment-AST to variable names. This raises `TypeError` if the assignment does not create new variable:: @@ -128,7 +128,7 @@ class TokenProcessor: """Returns specified line.""" return self.buffers[lineno - 1] - def fetch_token(self) -> Token: + def fetch_token(self) -> Optional[Token]: """Fetch the next token from source code. Returns ``None`` if sequence finished. diff --git a/sphinx/registry.py b/sphinx/registry.py index 170d6eaad..a32101d53 100644 --- a/sphinx/registry.py +++ b/sphinx/registry.py @@ -149,7 +149,7 @@ class SphinxComponentRegistry: self.load_extension(app, entry_point.module) def create_builder(self, app: "Sphinx", name: str, - env: BuildEnvironment = None) -> Builder: + env: Optional[BuildEnvironment] = None) -> Builder: if name not in self.builders: raise SphinxError(__('Builder name %s not registered') % name) @@ -223,10 +223,17 @@ class SphinxComponentRegistry: (index.name, domain)) indices.append(index) - def add_object_type(self, directivename: str, rolename: str, indextemplate: str = '', - parse_node: Callable = None, ref_nodeclass: Type[TextElement] = None, - objname: str = '', doc_field_types: List = [], override: bool = False - ) -> None: + def add_object_type( + self, + directivename: str, + rolename: str, + indextemplate: str = '', + parse_node: Optional[Callable] = None, + ref_nodeclass: Optional[Type[TextElement]] = None, + objname: str = '', + doc_field_types: List = [], + override: bool = False + ) -> None: logger.debug('[app] adding object type: %r', (directivename, rolename, indextemplate, parse_node, ref_nodeclass, objname, doc_field_types)) @@ -247,9 +254,15 @@ class SphinxComponentRegistry: directivename) object_types[directivename] = ObjType(objname or directivename, rolename) - def add_crossref_type(self, directivename: str, rolename: str, indextemplate: str = '', - ref_nodeclass: Type[TextElement] = None, objname: str = '', - override: bool = False) -> None: + def add_crossref_type( + self, + directivename: str, + rolename: str, + indextemplate: str = '', + ref_nodeclass: Optional[Type[TextElement]] = None, + objname: str = '', + override: bool = False + ) -> None: logger.debug('[app] adding crossref type: %r', (directivename, rolename, indextemplate, ref_nodeclass, objname)) @@ -386,8 +399,12 @@ class SphinxComponentRegistry: else: self.latex_packages.append((name, options)) - def add_enumerable_node(self, node: Type[Node], figtype: str, - title_getter: TitleGetter = None, override: bool = False) -> None: + def add_enumerable_node( + self, + node: Type[Node], + figtype: str, + title_getter: Optional[TitleGetter] = None, override: bool = False + ) -> None: logger.debug('[app] adding enumerable node: (%r, %r, %r)', node, figtype, title_getter) if node in self.enumerable_nodes and not override: raise ExtensionError(__('enumerable_node %r already registered') % node) diff --git a/sphinx/search/__init__.py b/sphinx/search/__init__.py index e4fdeec91..a3dd07d3f 100644 --- a/sphinx/search/__init__.py +++ b/sphinx/search/__init__.py @@ -6,7 +6,7 @@ import re import warnings from importlib import import_module from os import path -from typing import IO, Any, Dict, Iterable, List, Optional, Set, Tuple, Type +from typing import IO, Any, Dict, Iterable, List, Optional, Set, Tuple, Type, Union from docutils import nodes from docutils.nodes import Element, Node @@ -46,11 +46,11 @@ class SearchLanguage: This class is used to preprocess search word which Sphinx HTML readers type, before searching index. Default implementation does nothing. """ - lang: str = None - language_name: str = None + lang: Optional[str] = None + language_name: Optional[str] = None stopwords: Set[str] = set() js_splitter_code: str = "" - js_stemmer_rawcode: str = None + js_stemmer_rawcode: Optional[str] = None js_stemmer_code = """ /** * Dummy stemmer for languages without stemming rules. @@ -125,7 +125,7 @@ def parse_stop_word(source: str) -> Set[str]: # maps language name to module.class or directly a class -languages: Dict[str, Any] = { +languages: Dict[str, Union[str, Type[SearchLanguage]]] = { 'da': 'sphinx.search.da.SearchDanish', 'de': 'sphinx.search.de.SearchGerman', 'en': SearchEnglish, @@ -183,6 +183,7 @@ class WordCollector(nodes.NodeVisitor): def __init__(self, document: nodes.document, lang: SearchLanguage) -> None: super().__init__(document) self.found_words: List[str] = [] + self.found_titles: List[Tuple[str, str]] = [] self.found_title_words: List[str] = [] self.lang = lang @@ -213,7 +214,10 @@ class WordCollector(nodes.NodeVisitor): elif isinstance(node, nodes.Text): self.found_words.extend(self.lang.split(node.astext())) elif isinstance(node, nodes.title): - self.found_title_words.extend(self.lang.split(node.astext())) + title = node.astext() + ids = node.parent['ids'] + self.found_titles.append((title, ids[0] if ids else None)) + self.found_title_words.extend(self.lang.split(title)) elif isinstance(node, Element) and self.is_meta_keywords(node): keywords = node['content'] keywords = [keyword.strip() for keyword in keywords.split(',')] @@ -237,12 +241,13 @@ class IndexBuilder: self._mapping: Dict[str, Set[str]] = {} # stemmed word -> set(docname) # stemmed words in titles -> set(docname) self._title_mapping: Dict[str, Set[str]] = {} + self._all_titles: Dict[str, List[Tuple[str, str]]] = {} # docname -> all titles self._stem_cache: Dict[str, str] = {} # word -> stemmed word self._objtypes: Dict[Tuple[str, str], int] = {} # objtype -> index # objtype index -> (domain, type, objname (localized)) self._objnames: Dict[int, Tuple[str, str, str]] = {} # add language-specific SearchLanguage instance - lang_class: Type[SearchLanguage] = languages.get(lang) + lang_class = languages.get(lang) # fallback; try again with language-code if lang_class is None and '_' in lang: @@ -252,8 +257,8 @@ class IndexBuilder: self.lang: SearchLanguage = SearchEnglish(options) elif isinstance(lang_class, str): module, classname = lang_class.rsplit('.', 1) - lang_class = getattr(import_module(module), classname) - self.lang = lang_class(options) + lang_class: Type[SearchLanguage] = getattr(import_module(module), classname) # type: ignore[no-redef] + self.lang = lang_class(options) # type: ignore[operator] else: # it's directly a class (e.g. added by app.add_search_language) self.lang = lang_class(options) @@ -281,6 +286,11 @@ class IndexBuilder: index2fn = frozen['docnames'] self._filenames = dict(zip(index2fn, frozen['filenames'])) self._titles = dict(zip(index2fn, frozen['titles'])) + self._all_titles = {} + + for title, doc_tuples in frozen['alltitles'].items(): + for doc, titleid in doc_tuples: + self._all_titles.setdefault(index2fn[doc], []).append((title, titleid)) def load_terms(mapping: Dict[str, Any]) -> Dict[str, Set[str]]: rv = {} @@ -364,9 +374,16 @@ class IndexBuilder: objects = self.get_objects(fn2index) # populates _objtypes objtypes = {v: k[0] + ':' + k[1] for (k, v) in self._objtypes.items()} objnames = self._objnames + + alltitles: Dict[str, List[Tuple[int, str]]] = {} + for docname, titlelist in self._all_titles.items(): + for title, titleid in titlelist: + alltitles.setdefault(title.lower(), []).append((fn2index[docname], titleid)) + return dict(docnames=docnames, filenames=filenames, titles=titles, terms=terms, objects=objects, objtypes=objtypes, objnames=objnames, - titleterms=title_terms, envversion=self.env.version) + titleterms=title_terms, envversion=self.env.version, + alltitles=alltitles) def label(self) -> str: return "%s (code: %s)" % (self.lang.language_name, self.lang.lang) @@ -374,13 +391,16 @@ class IndexBuilder: def prune(self, docnames: Iterable[str]) -> None: """Remove data for all docnames not in the list.""" new_titles = {} + new_alltitles = {} new_filenames = {} for docname in docnames: if docname in self._titles: new_titles[docname] = self._titles[docname] + new_alltitles[docname] = self._all_titles[docname] new_filenames[docname] = self._filenames[docname] self._titles = new_titles self._filenames = new_filenames + self._all_titles = new_alltitles for wordnames in self._mapping.values(): wordnames.intersection_update(docnames) for wordnames in self._title_mapping.values(): @@ -403,6 +423,8 @@ class IndexBuilder: return self._stem_cache[word] _filter = self.lang.word_filter + self._all_titles[docname] = visitor.found_titles + for word in visitor.found_title_words: stemmed_word = stem(word) if _filter(stemmed_word): diff --git a/sphinx/testing/util.py b/sphinx/testing/util.py index 672cdba8f..6f0b79810 100644 --- a/sphinx/testing/util.py +++ b/sphinx/testing/util.py @@ -5,7 +5,7 @@ import re import sys import warnings from io import StringIO -from typing import IO, Any, Dict, Generator, List, Pattern +from typing import IO, Any, Dict, Generator, List, Optional, Pattern from xml.etree import ElementTree from docutils import nodes @@ -91,13 +91,22 @@ class SphinxTestApp(application.Sphinx): A subclass of :class:`Sphinx` that runs on the test root, with some better default values for the initialization parameters. """ - _status: StringIO = None - _warning: StringIO = None + _status: StringIO + _warning: StringIO - def __init__(self, buildername: str = 'html', srcdir: path = None, builddir: path = None, - freshenv: bool = False, confoverrides: Dict = None, status: IO = None, - warning: IO = None, tags: List[str] = None, docutilsconf: str = None, - parallel: int = 0) -> None: + def __init__( + self, + buildername: str = 'html', + srcdir: Optional[path] = None, + builddir: Optional[path] = None, + freshenv: bool = False, + confoverrides: Optional[Dict] = None, + status: Optional[IO] = None, + warning: Optional[IO] = None, + tags: Optional[List[str]] = None, + docutilsconf: Optional[str] = None, + parallel: int = 0 + ) -> None: if docutilsconf is not None: (srcdir / 'docutils.conf').write_text(docutilsconf) @@ -169,10 +178,10 @@ class SphinxTestAppWrapperForSkipBuilding: _unicode_literals_re = re.compile(r'u(".*?")|u(\'.*?\')') -def find_files(root: str, suffix: bool = None) -> Generator[str, None, None]: +def find_files(root: str, suffix: Optional[str] = None) -> Generator[str, None, None]: for dirpath, _dirs, files in os.walk(root, followlinks=True): dirpath = path(dirpath) - for f in [f for f in files if not suffix or f.endswith(suffix)]: # type: ignore + for f in [f for f in files if not suffix or f.endswith(suffix)]: fpath = dirpath / f yield relpath(fpath, root) diff --git a/sphinx/themes/agogo/static/agogo.css_t b/sphinx/themes/agogo/static/agogo.css_t index 53c4c3848..14c5e52ce 100644 --- a/sphinx/themes/agogo/static/agogo.css_t +++ b/sphinx/themes/agogo/static/agogo.css_t @@ -273,6 +273,12 @@ div.document ol { div.sidebar, aside.sidebar { + width: {{ theme_sidebarwidth|todim }}; + {%- if theme_rightsidebar|tobool %} + float: right; + {%- else %} + float: left; + {%- endif %} font-size: .9em; } diff --git a/sphinx/themes/basic/static/searchtools.js b/sphinx/themes/basic/static/searchtools.js index f2fb7d5cf..e80592c14 100644 --- a/sphinx/themes/basic/static/searchtools.js +++ b/sphinx/themes/basic/static/searchtools.js @@ -64,7 +64,7 @@ const _displayItem = (item, highlightTerms, searchTerms) => { const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX; const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY; - const [docName, title, anchor, descr] = item; + const [docName, title, anchor, descr, score, _filename] = item; let listItem = document.createElement("li"); let requestUrl; @@ -86,6 +86,7 @@ const _displayItem = (item, highlightTerms, searchTerms) => { params.set("highlight", [...highlightTerms].join(" ")); let linkEl = listItem.appendChild(document.createElement("a")); linkEl.href = linkUrl + "?" + params.toString() + anchor; + linkEl.dataset.score = score; linkEl.innerHTML = title; if (descr) listItem.appendChild(document.createElement("span")).innerHTML = @@ -237,6 +238,11 @@ const Search = { * execute search (requires search index to be loaded) */ query: (query) => { + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const titles = Search._index.titles; + const allTitles = Search._index.alltitles; + // stem the search terms and add them to the correct list const stemmer = new Stemmer(); const searchTerms = new Set(); @@ -272,6 +278,23 @@ const Search = { let results = []; _removeChildren(document.getElementById("search-progress")); + const queryLower = query.toLowerCase(); + for (const [title, foundTitles] of Object.entries(allTitles)) { + if (title.includes(queryLower) && (queryLower.length >= title.length/2)) { + for (const [file, id] of foundTitles) { + let score = Math.round(100 * queryLower.length / title.length) + results.push([ + docNames[file], + titles[file], + id !== null ? "#" + id : "", + null, + score, + filenames[file], + ]); + } + } + } + // lookup as object objectTerms.forEach((term) => results.push(...Search.performObjectSearch(term, objectTerms)) @@ -399,8 +422,8 @@ const Search = { // prepare search const terms = Search._index.terms; const titleTerms = Search._index.titleterms; - const docNames = Search._index.docnames; const filenames = Search._index.filenames; + const docNames = Search._index.docnames; const titles = Search._index.titles; const scoreMap = new Map(); diff --git a/sphinx/transforms/__init__.py b/sphinx/transforms/__init__.py index d9037c0a4..2d6a027e3 100644 --- a/sphinx/transforms/__init__.py +++ b/sphinx/transforms/__init__.py @@ -370,7 +370,7 @@ class ManpageLink(SphinxTransform): for node in self.document.findall(addnodes.manpage): manpage = ' '.join([str(x) for x in node.children if isinstance(x, nodes.Text)]) - pattern = r'^(?P(?P.+)[\(\.](?P
[1-9]\w*)?\)?)$' # noqa + pattern = r'^(?P(?P.+)[\(\.](?P
[1-9]\w*)?\)?)$' info = {'path': manpage, 'page': manpage, 'section': ''} diff --git a/sphinx/transforms/post_transforms/__init__.py b/sphinx/transforms/post_transforms/__init__.py index 94a162963..293d79609 100644 --- a/sphinx/transforms/post_transforms/__init__.py +++ b/sphinx/transforms/post_transforms/__init__.py @@ -112,7 +112,9 @@ class ReferencesResolver(SphinxPostTransform): node.replace_self(newnodes) - def resolve_anyref(self, refdoc: str, node: pending_xref, contnode: Element) -> Element: + def resolve_anyref( + self, refdoc: str, node: pending_xref, contnode: Element + ) -> Optional[Element]: """Resolve reference generated by the "any" role.""" stddomain = self.env.get_domain('std') target = node['reftarget'] diff --git a/sphinx/util/__init__.py b/sphinx/util/__init__.py index 0b0e1c952..007a2bf5d 100644 --- a/sphinx/util/__init__.py +++ b/sphinx/util/__init__.py @@ -212,7 +212,7 @@ _DEBUG_HEADER = '''\ ''' -def save_traceback(app: "Sphinx") -> str: +def save_traceback(app: Optional["Sphinx"]) -> str: """Save the current exception's traceback in a temporary file.""" import platform @@ -249,7 +249,7 @@ def save_traceback(app: "Sphinx") -> str: return path -def get_full_modname(modname: str, attribute: str) -> str: +def get_full_modname(modname: str, attribute: str) -> Optional[str]: if modname is None: # Prevents a TypeError: if the last getattr() call will return None # then it's better to return it directly @@ -378,7 +378,7 @@ def format_exception_cut_frames(x: int = 1) -> str: return ''.join(res) -def import_object(objname: str, source: str = None) -> Any: +def import_object(objname: str, source: Optional[str] = None) -> Any: """Import python object by qualname.""" try: objpath = objname.split('.') diff --git a/sphinx/util/docutils.py b/sphinx/util/docutils.py index 88bdaf943..cde09058e 100644 --- a/sphinx/util/docutils.py +++ b/sphinx/util/docutils.py @@ -18,7 +18,7 @@ from docutils.parsers.rst import Directive, directives, roles from docutils.parsers.rst.states import Inliner from docutils.statemachine import State, StateMachine, StringList from docutils.utils import Reporter, unescape -from docutils.writers._html_base import HTMLTranslator # NoQA +from docutils.writers._html_base import HTMLTranslator from sphinx.deprecation import RemovedInSphinx70Warning, deprecated_alias from sphinx.errors import SphinxError @@ -30,6 +30,8 @@ logger = logging.getLogger(__name__) report_re = re.compile('^(.+?:(?:\\d+)?): \\((DEBUG|INFO|WARNING|ERROR|SEVERE)/(\\d+)?\\) ') if TYPE_CHECKING: + from docutils.frontend import Values + from sphinx.builders import Builder from sphinx.config import Config from sphinx.environment import BuildEnvironment @@ -598,7 +600,7 @@ if docutils.__version_info__ <= (0, 18): # cache a vanilla instance of nodes.document # Used in new_document() function -__document_cache__: Optional[nodes.document] = None +__document_cache__: Tuple["Values", Reporter] def new_document(source_path: str, settings: Any = None) -> nodes.document: @@ -609,15 +611,18 @@ def new_document(source_path: str, settings: Any = None) -> nodes.document: This makes an instantiation of document nodes much faster. """ global __document_cache__ - if __document_cache__ is None: - __document_cache__ = docutils.utils.new_document(source_path) + try: + cached_settings, reporter = __document_cache__ + except NameError: + doc = docutils.utils.new_document(source_path) + __document_cache__ = cached_settings, reporter = doc.settings, doc.reporter if settings is None: - # Make a copy of ``settings`` from cache to accelerate instantiation - settings = copy(__document_cache__.settings) + # Make a copy of the cached settings to accelerate instantiation + settings = copy(cached_settings) # Create a new instance of nodes.document using cached reporter from sphinx import addnodes - document = addnodes.document(settings, __document_cache__.reporter, source=source_path) + document = addnodes.document(settings, reporter, source=source_path) document.note_source(source_path, -1) return document diff --git a/sphinx/util/fileutil.py b/sphinx/util/fileutil.py index f706fa69a..e4f24f239 100644 --- a/sphinx/util/fileutil.py +++ b/sphinx/util/fileutil.py @@ -2,7 +2,7 @@ import os import posixpath -from typing import TYPE_CHECKING, Callable, Dict +from typing import TYPE_CHECKING, Callable, Dict, Optional from docutils.utils import relative_path @@ -14,7 +14,8 @@ if TYPE_CHECKING: def copy_asset_file(source: str, destination: str, - context: Dict = None, renderer: "BaseRenderer" = None) -> None: + context: Optional[Dict] = None, + renderer: Optional["BaseRenderer"] = None) -> None: """Copy an asset file to destination. On copying, it expands the template variables if context argument is given and @@ -47,8 +48,8 @@ def copy_asset_file(source: str, destination: str, def copy_asset(source: str, destination: str, excluded: PathMatcher = lambda path: False, - context: Dict = None, renderer: "BaseRenderer" = None, - onerror: Callable[[str, Exception], None] = None) -> None: + context: Optional[Dict] = None, renderer: Optional["BaseRenderer"] = None, + onerror: Optional[Callable[[str, Exception], None]] = None) -> None: """Copy asset files to destination recursively. On copying, it expands the template variables if context argument is given and diff --git a/sphinx/util/i18n.py b/sphinx/util/i18n.py index 0de6b6a4e..6915d3091 100644 --- a/sphinx/util/i18n.py +++ b/sphinx/util/i18n.py @@ -5,7 +5,7 @@ import re import warnings from datetime import datetime, timezone from os import path -from typing import TYPE_CHECKING, Callable, Generator, List, NamedTuple, Tuple, Union +from typing import TYPE_CHECKING, Callable, Generator, List, NamedTuple, Optional, Tuple, Union import babel.dates from babel.messages.mofile import write_mo @@ -190,7 +190,9 @@ def babel_format_date(date: datetime, format: str, locale: str, return format -def format_date(format: str, date: datetime = None, language: str = None) -> str: +def format_date( + format: str, date: Optional[datetime] = None, language: Optional[str] = None +) -> str: if date is None: # If time is not specified, try to use $SOURCE_DATE_EPOCH variable # See https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py index 6a0f5f2b0..76e3ca3ac 100644 --- a/sphinx/util/inspect.py +++ b/sphinx/util/inspect.py @@ -46,7 +46,7 @@ def unwrap(obj: Any) -> Any: return obj -def unwrap_all(obj: Any, *, stop: Callable = None) -> Any: +def unwrap_all(obj: Any, *, stop: Optional[Callable] = None) -> Any: """ Get an original object from wrapped object (unwrapping partials, wrapped functions, and other decorators). @@ -186,7 +186,7 @@ def ispartial(obj: Any) -> bool: return isinstance(obj, (partial, partialmethod)) -def isclassmethod(obj: Any, cls: Any = None, name: str = None) -> bool: +def isclassmethod(obj: Any, cls: Any = None, name: Optional[str] = None) -> bool: """Check if the object is classmethod.""" if isinstance(obj, classmethod): return True @@ -202,7 +202,7 @@ def isclassmethod(obj: Any, cls: Any = None, name: str = None) -> bool: return False -def isstaticmethod(obj: Any, cls: Any = None, name: str = None) -> bool: +def isstaticmethod(obj: Any, cls: Any = None, name: Optional[str] = None) -> bool: """Check if the object is staticmethod.""" if isinstance(obj, staticmethod): return True @@ -613,7 +613,8 @@ def signature(subject: Callable, bound_method: bool = False, type_aliases: Dict __validate_parameters__=False) -def evaluate_signature(sig: inspect.Signature, globalns: Dict = None, localns: Dict = None +def evaluate_signature(sig: inspect.Signature, globalns: Optional[Dict] = None, + localns: Optional[Dict] = None ) -> inspect.Signature: """Evaluate unresolved type annotations in a signature object.""" def evaluate_forwardref(ref: ForwardRef, globalns: Dict, localns: Dict) -> Any: @@ -790,8 +791,13 @@ def signature_from_ast(node: ast.FunctionDef, code: str = '') -> inspect.Signatu return inspect.Signature(params, return_annotation=return_annotation) -def getdoc(obj: Any, attrgetter: Callable = safe_getattr, - allow_inherited: bool = False, cls: Any = None, name: str = None) -> str: +def getdoc( + obj: Any, + attrgetter: Callable = safe_getattr, + allow_inherited: bool = False, + cls: Any = None, + name: Optional[str] = None +) -> Optional[str]: """Get the docstring for the object. This tries to obtain the docstring for some kind of objects additionally: @@ -811,7 +817,7 @@ def getdoc(obj: Any, attrgetter: Callable = safe_getattr, for basecls in getmro(cls): meth = basecls.__dict__.get(name) if meth and hasattr(meth, '__func__'): - doc = getdoc(meth.__func__) + doc: Optional[str] = getdoc(meth.__func__) if doc is not None or not allow_inherited: return doc diff --git a/sphinx/util/parallel.py b/sphinx/util/parallel.py index e89418ad3..267f7bd4c 100644 --- a/sphinx/util/parallel.py +++ b/sphinx/util/parallel.py @@ -9,8 +9,9 @@ from typing import Any, Callable, Dict, List, Optional, Sequence try: import multiprocessing + HAS_MULTIPROCESSING = True except ImportError: - multiprocessing = None + HAS_MULTIPROCESSING = False from sphinx.errors import SphinxParallelError from sphinx.util import logging @@ -33,7 +34,9 @@ class SerialTasks: def __init__(self, nproc: int = 1) -> None: pass - def add_task(self, task_func: Callable, arg: Any = None, result_func: Callable = None) -> None: # NOQA + def add_task( + self, task_func: Callable, arg: Any = None, result_func: Optional[Callable] = None + ) -> None: if arg is not None: res = task_func(arg) else: diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 5debd681f..43f3910dd 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -389,9 +389,9 @@ class LaTeXTranslator(SphinxTranslator): self.context: List[Any] = [] self.descstack: List[str] = [] self.tables: List[Table] = [] - self.next_table_colspec: str = None + self.next_table_colspec: Optional[str] = None self.bodystack: List[List[str]] = [] - self.footnote_restricted: Element = None + self.footnote_restricted: Optional[Element] = None self.pending_footnotes: List[nodes.footnote_reference] = [] self.curfilestack: List[str] = [] self.handled_abbrs: Set[str] = set() @@ -1187,7 +1187,7 @@ class LaTeXTranslator(SphinxTranslator): # self.body.append(r'\columnbreak\n') pass - def latex_image_length(self, width_str: str, scale: int = 100) -> str: + def latex_image_length(self, width_str: str, scale: int = 100) -> Optional[str]: try: return rstdim_to_latexdim(width_str, scale) except ValueError: @@ -1708,15 +1708,10 @@ class LaTeXTranslator(SphinxTranslator): opts = self.config.highlight_options.get(lang, {}) hlcode = self.highlighter.highlight_block( - node.astext(), lang, opts=opts, location=node) - # TODO: Use nowrap option once LaTeX formatter supports it - # https://github.com/pygments/pygments/pull/1343 - hlcode = hlcode.replace(r'\begin{Verbatim}[commandchars=\\\{\}]', - r'\sphinxcode{\sphinxupquote{%') - # get consistent trailer - hlcode = hlcode.rstrip()[:-15] # strip \n\end{Verbatim} - self.body.append(hlcode) - self.body.append('%' + CR + '}}') + node.astext(), lang, opts=opts, location=node, nowrap=True) + self.body.append(r'\sphinxcode{\sphinxupquote{%' + CR + + hlcode.rstrip() + '%' + CR # NoQA: W503 + + '}}') # NoQA: W503 raise nodes.SkipNode def depart_literal(self, node: Element) -> None: diff --git a/sphinx/writers/texinfo.py b/sphinx/writers/texinfo.py index 6b176bb3b..aeb8e8f63 100644 --- a/sphinx/writers/texinfo.py +++ b/sphinx/writers/texinfo.py @@ -115,7 +115,7 @@ class TexinfoWriter(writers.Writer): settings_defaults: Dict = {} - output: str = None + output: Optional[str] = None # type: ignore[assignment] visitor_attributes = ('output', 'fragment') @@ -134,8 +134,8 @@ class TexinfoWriter(writers.Writer): class TexinfoTranslator(SphinxTranslator): - builder: "TexinfoBuilder" = None ignore_missing_images = False + builder: "TexinfoBuilder" default_elements = { 'author': '', @@ -180,11 +180,11 @@ class TexinfoTranslator(SphinxTranslator): self.escape_newlines = 0 self.escape_hyphens = 0 self.curfilestack: List[str] = [] - self.footnotestack: List[Dict[str, List[Union[collected_footnote, bool]]]] = [] # NOQA + self.footnotestack: List[Dict[str, List[Union[collected_footnote, bool]]]] = [] self.in_footnote = 0 self.in_samp = 0 self.handled_abbrs: Set[str] = set() - self.colwidths: Optional[List[int]] = None + self.colwidths: List[int] = [] def finish(self) -> None: if self.previous_section is None: @@ -765,10 +765,10 @@ class TexinfoTranslator(SphinxTranslator): self.ensure_eol() self.body.append('@end quotation\n') - def visit_literal_block(self, node: Element) -> None: + def visit_literal_block(self, node: Optional[Element]) -> None: self.body.append('\n@example\n') - def depart_literal_block(self, node: Element) -> None: + def depart_literal_block(self, node: Optional[Element]) -> None: self.ensure_eol() self.body.append('@end example\n') @@ -1404,7 +1404,7 @@ class TexinfoTranslator(SphinxTranslator): category = self.escape_arg(smart_capwords(name)) self.body.append('\n%s {%s} ' % (self.at_deffnx, category)) self.at_deffnx = '@deffnx' - self.desc_type_name = name + self.desc_type_name: Optional[str] = name def depart_desc_signature(self, node: Element) -> None: self.body.append("\n") diff --git a/tests/roots/test-ext-autodoc/autodoc_dummy_module.py b/tests/roots/test-ext-autodoc/autodoc_dummy_module.py index 1e9ed19dc..c05d96e0d 100644 --- a/tests/roots/test-ext-autodoc/autodoc_dummy_module.py +++ b/tests/roots/test-ext-autodoc/autodoc_dummy_module.py @@ -1,6 +1,6 @@ -from dummy import * # NOQA +from dummy import * def test(): """Dummy function using dummy.*""" - dummy_function() # NOQA + dummy_function() diff --git a/tests/roots/test-ext-autodoc/target/__init__.py b/tests/roots/test-ext-autodoc/target/__init__.py index 54f52bbff..0d39c6672 100644 --- a/tests/roots/test-ext-autodoc/target/__init__.py +++ b/tests/roots/test-ext-autodoc/target/__init__.py @@ -1,7 +1,7 @@ import enum from io import StringIO -from sphinx.util import save_traceback # NOQA +from sphinx.util import save_traceback __all__ = ['Class'] diff --git a/tests/roots/test-ext-autodoc/target/coroutine.py b/tests/roots/test-ext-autodoc/target/coroutine.py index 156d7f961..f977b6e77 100644 --- a/tests/roots/test-ext-autodoc/target/coroutine.py +++ b/tests/roots/test-ext-autodoc/target/coroutine.py @@ -5,7 +5,7 @@ from functools import wraps class AsyncClass: async def do_coroutine(self): """A documented coroutine function""" - attr_coro_result = await _other_coro_func() # NOQA + attr_coro_result = await _other_coro_func() @classmethod async def do_coroutine2(cls): diff --git a/tests/roots/test-ext-autodoc/target/need_mocks.py b/tests/roots/test-ext-autodoc/target/need_mocks.py index 6f75dc380..45b3ade06 100644 --- a/tests/roots/test-ext-autodoc/target/need_mocks.py +++ b/tests/roots/test-ext-autodoc/target/need_mocks.py @@ -1,12 +1,12 @@ -import missing_module # NOQA -import missing_package1.missing_module1 # NOQA -from missing_module import missing_name # NOQA -from missing_package2 import missing_module2 # NOQA -from missing_package3.missing_module3 import missing_name # NOQA +import missing_module +import missing_package1.missing_module1 +from missing_module import missing_name +from missing_package2 import missing_module2 +from missing_package3.missing_module3 import missing_name -import sphinx.missing_module4 # NOQA -from sphinx.missing_module4 import missing_name2 # NOQA +import sphinx.missing_module4 +from sphinx.missing_module4 import missing_name2 @missing_name(int) diff --git a/tests/roots/test-ext-autosummary-filename-map/autosummary_dummy_module.py b/tests/roots/test-ext-autosummary-filename-map/autosummary_dummy_module.py index 1f57eeb25..0953b64b9 100644 --- a/tests/roots/test-ext-autosummary-filename-map/autosummary_dummy_module.py +++ b/tests/roots/test-ext-autosummary-filename-map/autosummary_dummy_module.py @@ -1,4 +1,4 @@ -from os import path # NOQA +from os import path from typing import Union diff --git a/tests/roots/test-ext-autosummary-recursive/package/module.py b/tests/roots/test-ext-autosummary-recursive/package/module.py index 5506d0bc9..c76e73302 100644 --- a/tests/roots/test-ext-autosummary-recursive/package/module.py +++ b/tests/roots/test-ext-autosummary-recursive/package/module.py @@ -1,4 +1,4 @@ -from os import * # NOQA +from os import * class Foo: diff --git a/tests/roots/test-ext-autosummary-recursive/package/package/module.py b/tests/roots/test-ext-autosummary-recursive/package/package/module.py index 5506d0bc9..c76e73302 100644 --- a/tests/roots/test-ext-autosummary-recursive/package/package/module.py +++ b/tests/roots/test-ext-autosummary-recursive/package/package/module.py @@ -1,4 +1,4 @@ -from os import * # NOQA +from os import * class Foo: diff --git a/tests/roots/test-ext-autosummary-recursive/package2/module.py b/tests/roots/test-ext-autosummary-recursive/package2/module.py index 5506d0bc9..c76e73302 100644 --- a/tests/roots/test-ext-autosummary-recursive/package2/module.py +++ b/tests/roots/test-ext-autosummary-recursive/package2/module.py @@ -1,4 +1,4 @@ -from os import * # NOQA +from os import * class Foo: diff --git a/tests/roots/test-ext-autosummary/autosummary_dummy_module.py b/tests/roots/test-ext-autosummary/autosummary_dummy_module.py index 9c4a0445d..2d8829a23 100644 --- a/tests/roots/test-ext-autosummary/autosummary_dummy_module.py +++ b/tests/roots/test-ext-autosummary/autosummary_dummy_module.py @@ -1,4 +1,4 @@ -from os import path # NOQA +from os import path from typing import Union from autosummary_class_module import Class diff --git a/tests/roots/test-ext-viewcode-find/not_a_package/__init__.py b/tests/roots/test-ext-viewcode-find/not_a_package/__init__.py index f79ec81f5..2382935a3 100644 --- a/tests/roots/test-ext-viewcode-find/not_a_package/__init__.py +++ b/tests/roots/test-ext-viewcode-find/not_a_package/__init__.py @@ -1 +1 @@ -from .submodule import Class1, func1 # NOQA +from .submodule import Class1, func1 diff --git a/tests/roots/test-ext-viewcode/conf.py b/tests/roots/test-ext-viewcode/conf.py index 6ec2b7742..bee063988 100644 --- a/tests/roots/test-ext-viewcode/conf.py +++ b/tests/roots/test-ext-viewcode/conf.py @@ -8,7 +8,7 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] exclude_patterns = ['_build'] -if 'test_linkcode' in tags: # NOQA +if 'test_linkcode' in tags: extensions.remove('sphinx.ext.viewcode') extensions.append('sphinx.ext.linkcode') diff --git a/tests/roots/test-ext-viewcode/spam/__init__.py b/tests/roots/test-ext-viewcode/spam/__init__.py index c438f6050..62190421f 100644 --- a/tests/roots/test-ext-viewcode/spam/__init__.py +++ b/tests/roots/test-ext-viewcode/spam/__init__.py @@ -1,2 +1,2 @@ -from .mod1 import Class1, func1 # NOQA -from .mod2 import Class2, func2 # NOQA +from .mod1 import Class1, func1 +from .mod2 import Class2, func2 diff --git a/tests/roots/test-linkcheck/links.txt b/tests/roots/test-linkcheck/links.txt index 626f843f1..1d2408401 100644 --- a/tests/roots/test-linkcheck/links.txt +++ b/tests/roots/test-linkcheck/links.txt @@ -17,3 +17,6 @@ Some additional anchors to exercise ignore code .. image:: https://www.google.com/image.png .. figure:: https://www.google.com/image2.png + +.. raw:: html + :url: https://www.sphinx-doc.org/ diff --git a/tests/roots/test-root/conf.py b/tests/roots/test-root/conf.py index 687445a70..1065cd193 100644 --- a/tests/roots/test-root/conf.py +++ b/tests/roots/test-root/conf.py @@ -46,7 +46,7 @@ extlinks = {'issue': ('http://bugs.python.org/issue%s', 'issue %s'), 'pyurl': ('http://python.org/%s', None)} # modify tags from conf.py -tags.add('confpytag') # NOQA +tags.add('confpytag') # -- extension API diff --git a/tests/test_build_html.py b/tests/test_build_html.py index 76a020d13..f443bdf4d 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -6,10 +6,8 @@ from itertools import chain, cycle from unittest.mock import ANY, call, patch import docutils -import pygments import pytest from html5lib import HTMLParser -from packaging import version from sphinx.builders.html import validate_html_extra_path, validate_html_static_path from sphinx.errors import ConfigError @@ -23,9 +21,6 @@ else: FIGURE_CAPTION = ".//figure/figcaption/p" -PYGMENTS_VERSION = version.parse(pygments.__version__).release - - ENV_WARNINGS = """\ %(root)s/autodoc_fodder.py:docstring of autodoc_fodder.MarkupError:\\d+: \ WARNING: Explicit markup ends without a blank line; unexpected unindent. @@ -1630,10 +1625,7 @@ def test_html_codeblock_linenos_style(app): app.build() content = (app.outdir / 'index.html').read_text(encoding='utf8') - if PYGMENTS_VERSION > (2, 7): - assert '1' in content - else: - assert '1 ' in content + assert '1' in content @pytest.mark.sphinx('html', testroot='highlight_options') diff --git a/tests/test_build_linkcheck.py b/tests/test_build_linkcheck.py index cc5cb4d10..631c7fab8 100644 --- a/tests/test_build_linkcheck.py +++ b/tests/test_build_linkcheck.py @@ -41,7 +41,7 @@ def test_defaults(app): assert "Not Found for url: https://www.google.com/image2.png" in content # looking for local file should fail assert "[broken] path/to/notfound" in content - assert len(content.splitlines()) == 6 + assert len(content.splitlines()) == 7 @pytest.mark.sphinx('linkcheck', testroot='linkcheck', freshenv=True) @@ -58,8 +58,8 @@ def test_defaults_json(app): "info"]: assert attr in row - assert len(content.splitlines()) == 11 - assert len(rows) == 11 + assert len(content.splitlines()) == 12 + assert len(rows) == 12 # the output order of the rows is not stable # due to possible variance in network latency rowsby = {row["uri"]: row for row in rows} @@ -80,7 +80,7 @@ def test_defaults_json(app): assert dnerow['uri'] == 'https://localhost:7777/doesnotexist' assert rowsby['https://www.google.com/image2.png'] == { 'filename': 'links.txt', - 'lineno': 19, + 'lineno': 20, 'status': 'broken', 'code': 0, 'uri': 'https://www.google.com/image2.png', @@ -94,6 +94,15 @@ def test_defaults_json(app): # images should fail assert "Not Found for url: https://www.google.com/image.png" in \ rowsby["https://www.google.com/image.png"]["info"] + # raw nodes' url should be checked too + assert rowsby["https://www.sphinx-doc.org/"] == { + 'filename': 'links.txt', + 'lineno': 21, + 'status': 'redirected', + 'code': 302, + 'uri': 'https://www.sphinx-doc.org/', + 'info': 'https://www.sphinx-doc.org/en/master/' + } @pytest.mark.sphinx( @@ -102,6 +111,7 @@ def test_defaults_json(app): 'linkcheck_ignore': [ 'https://localhost:7777/doesnotexist', 'http://www.sphinx-doc.org/en/master/index.html#', + 'https://www.sphinx-doc.org/', 'https://www.google.com/image.png', 'https://www.google.com/image2.png', 'path/to/notfound'] diff --git a/tests/test_domain_py.py b/tests/test_domain_py.py index 3c71d8337..11e66fd27 100644 --- a/tests/test_domain_py.py +++ b/tests/test_domain_py.py @@ -1329,8 +1329,8 @@ def test_module_index(app): assert index.generate() == ( [('d', [IndexEntry('docutils', 0, 'index', 'module-docutils', '', '', '')]), ('s', [IndexEntry('sphinx', 1, 'index', 'module-sphinx', '', '', ''), - IndexEntry('sphinx.builders', 2, 'index', 'module-sphinx.builders', '', '', ''), # NOQA - IndexEntry('sphinx.builders.html', 2, 'index', 'module-sphinx.builders.html', '', '', ''), # NOQA + IndexEntry('sphinx.builders', 2, 'index', 'module-sphinx.builders', '', '', ''), + IndexEntry('sphinx.builders.html', 2, 'index', 'module-sphinx.builders.html', '', '', ''), IndexEntry('sphinx.config', 2, 'index', 'module-sphinx.config', '', '', ''), IndexEntry('sphinx_intl', 0, 'index', 'module-sphinx_intl', '', '', '')])], False @@ -1373,8 +1373,8 @@ def test_modindex_common_prefix(app): restructuredtext.parse(app, text) index = PythonModuleIndex(app.env.get_domain('py')) assert index.generate() == ( - [('b', [IndexEntry('sphinx.builders', 1, 'index', 'module-sphinx.builders', '', '', ''), # NOQA - IndexEntry('sphinx.builders.html', 2, 'index', 'module-sphinx.builders.html', '', '', '')]), # NOQA + [('b', [IndexEntry('sphinx.builders', 1, 'index', 'module-sphinx.builders', '', '', ''), + IndexEntry('sphinx.builders.html', 2, 'index', 'module-sphinx.builders.html', '', '', '')]), ('c', [IndexEntry('sphinx.config', 0, 'index', 'module-sphinx.config', '', '', '')]), ('d', [IndexEntry('docutils', 0, 'index', 'module-docutils', '', '', '')]), ('s', [IndexEntry('sphinx', 0, 'index', 'module-sphinx', '', '', ''), diff --git a/tests/test_domain_std.py b/tests/test_domain_std.py index 866938526..d5c3e63d8 100644 --- a/tests/test_domain_std.py +++ b/tests/test_domain_std.py @@ -445,3 +445,43 @@ def test_labeled_rubric(app): domain = app.env.get_domain("std") assert 'label' in domain.labels assert domain.labels['label'] == ('index', 'label', 'blah blah blah') + + +def test_labeled_definition(app): + text = (".. _label1:\n" + "\n" + "Foo blah *blah* blah\n" + " Definition\n" + "\n" + ".. _label2:\n" + "\n" + "Bar blah *blah* blah\n" + " Definition\n" + "\n") + restructuredtext.parse(app, text) + + domain = app.env.get_domain("std") + assert 'label1' in domain.labels + assert domain.labels['label1'] == ('index', 'label1', 'Foo blah blah blah') + assert 'label2' in domain.labels + assert domain.labels['label2'] == ('index', 'label2', 'Bar blah blah blah') + + +def test_labeled_field(app): + text = (".. _label1:\n" + "\n" + ":Foo blah *blah* blah:\n" + " Definition\n" + "\n" + ".. _label2:\n" + "\n" + ":Bar blah *blah* blah:\n" + " Definition\n" + "\n") + restructuredtext.parse(app, text) + + domain = app.env.get_domain("std") + assert 'label1' in domain.labels + assert domain.labels['label1'] == ('index', 'label1', 'Foo blah blah blah') + assert 'label2' in domain.labels + assert domain.labels['label2'] == ('index', 'label2', 'Bar blah blah blah') diff --git a/tests/test_ext_autodoc.py b/tests/test_ext_autodoc.py index 428bbc98f..c994282f6 100644 --- a/tests/test_ext_autodoc.py +++ b/tests/test_ext_autodoc.py @@ -363,7 +363,7 @@ def test_get_doc(app): # verify that method docstrings get extracted in both normal case # and in case of bound method posing as a function - class J: # NOQA + class J: def foo(self): """Method docstring""" assert getdocl('method', J.foo) == ['Method docstring'] @@ -808,7 +808,7 @@ def test_autodoc_imported_members(app): "imported-members": None, "ignore-module-all": None} actual = do_autodoc(app, 'module', 'target', options) - assert '.. py:function:: save_traceback(app: Sphinx) -> str' in actual + assert '.. py:function:: save_traceback(app: ~typing.Optional[Sphinx]) -> str' in actual @pytest.mark.sphinx('html', testroot='ext-autodoc') diff --git a/tests/test_intl.py b/tests/test_intl.py index 1366b0a06..796d95bcc 100644 --- a/tests/test_intl.py +++ b/tests/test_intl.py @@ -7,7 +7,6 @@ import os import re import docutils -import pygments import pytest from babel.messages import mofile, pofile from babel.messages.catalog import Catalog @@ -25,8 +24,6 @@ sphinx_intl = pytest.mark.sphinx( }, ) -pygments_version = tuple(int(v) for v in pygments.__version__.split('.')) - def read_po(pathname): with pathname.open(encoding='utf-8') as f: @@ -1099,13 +1096,9 @@ def test_additional_targets_should_not_be_translated(app): assert_count(expected_expr, result, 1) # C code block with lang should not be translated but be *C* highlighted - if pygments_version < (2, 10, 0): - expected_expr = ("""#include """ - """<stdio.h>""") - else: - expected_expr = ("""#include""" - """ """ - """<stdio.h>""") + expected_expr = ("""#include""" + """ """ + """<stdio.h>""") assert_count(expected_expr, result, 1) # literal block in list item should not be translated @@ -1182,13 +1175,9 @@ def test_additional_targets_should_be_translated(app): assert_count(expected_expr, result, 1) # C code block with lang should be translated and be *C* highlighted - if pygments_version < (2, 10, 0): - expected_expr = ("""#include """ - """<STDIO.H>""") - else: - expected_expr = ("""#include""" - """ """ - """<STDIO.H>""") + expected_expr = ("""#include""" + """ """ + """<STDIO.H>""") assert_count(expected_expr, result, 1) # literal block in list item should be translated diff --git a/tests/test_search.py b/tests/test_search.py index 0330bfbae..cbe1be54f 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -177,7 +177,8 @@ def test_IndexBuilder(): 'non': [0, 1, 2, 3], 'test': [0, 1, 2, 3]}, 'titles': ('title1_1', 'title1_2', 'title2_1', 'title2_2'), - 'titleterms': {'section_titl': [0, 1, 2, 3]} + 'titleterms': {'section_titl': [0, 1, 2, 3]}, + 'alltitles': {'section_title': [(0, 'section-title'), (1, 'section-title'), (2, 'section-title'), (3, 'section-title')]} } assert index._objtypes == {('dummy1', 'objtype1'): 0, ('dummy2', 'objtype1'): 1} assert index._objnames == {0: ('dummy1', 'objtype1', 'objtype1'), @@ -234,7 +235,8 @@ def test_IndexBuilder(): 'non': [0, 1], 'test': [0, 1]}, 'titles': ('title1_2', 'title2_2'), - 'titleterms': {'section_titl': [0, 1]} + 'titleterms': {'section_titl': [0, 1]}, + 'alltitles': {'section_title': [(0, 'section-title'), (1, 'section-title')]} } assert index._objtypes == {('dummy1', 'objtype1'): 0, ('dummy2', 'objtype1'): 1} assert index._objnames == {0: ('dummy1', 'objtype1', 'objtype1'), diff --git a/tests/test_util_inspect.py b/tests/test_util_inspect.py index f5fa6d0d3..3581b3946 100644 --- a/tests/test_util_inspect.py +++ b/tests/test_util_inspect.py @@ -643,12 +643,12 @@ def test_isattributedescriptor(app): assert inspect.isattributedescriptor(Base.meth) is False # method assert inspect.isattributedescriptor(Base.staticmeth) is False # staticmethod assert inspect.isattributedescriptor(Base.classmeth) is False # classmetho - assert inspect.isattributedescriptor(Descriptor) is False # custom descriptor class # NOQA - assert inspect.isattributedescriptor(str.join) is False # MethodDescriptorType # NOQA - assert inspect.isattributedescriptor(object.__init__) is False # WrapperDescriptorType # NOQA - assert inspect.isattributedescriptor(dict.__dict__['fromkeys']) is False # ClassMethodDescriptorType # NOQA - assert inspect.isattributedescriptor(types.FrameType.f_locals) is True # GetSetDescriptorType # NOQA - assert inspect.isattributedescriptor(datetime.timedelta.days) is True # MemberDescriptorType # NOQA + assert inspect.isattributedescriptor(Descriptor) is False # custom descriptor class + assert inspect.isattributedescriptor(str.join) is False # MethodDescriptorType + assert inspect.isattributedescriptor(object.__init__) is False # WrapperDescriptorType + assert inspect.isattributedescriptor(dict.__dict__['fromkeys']) is False # ClassMethodDescriptorType + assert inspect.isattributedescriptor(types.FrameType.f_locals) is True # GetSetDescriptorType + assert inspect.isattributedescriptor(datetime.timedelta.days) is True # MemberDescriptorType try: # _testcapi module cannot be importable in some distro @@ -656,7 +656,7 @@ def test_isattributedescriptor(app): import _testcapi testinstancemethod = _testcapi.instancemethod(str.__repr__) - assert inspect.isattributedescriptor(testinstancemethod) is False # instancemethod (C-API) # NOQA + assert inspect.isattributedescriptor(testinstancemethod) is False # instancemethod (C-API) except ImportError: pass diff --git a/tests/test_util_typing.py b/tests/test_util_typing.py index c1127d992..a70f01431 100644 --- a/tests/test_util_typing.py +++ b/tests/test_util_typing.py @@ -302,8 +302,8 @@ def test_stringify_type_hints_pep_585(): @pytest.mark.skipif(sys.version_info < (3, 9), reason='python 3.9+ is required.') def test_stringify_Annotated(): from typing import Annotated # type: ignore - assert stringify(Annotated[str, "foo", "bar"]) == "str" # NOQA - assert stringify(Annotated[str, "foo", "bar"], "smart") == "str" # NOQA + assert stringify(Annotated[str, "foo", "bar"]) == "str" + assert stringify(Annotated[str, "foo", "bar"], "smart") == "str" def test_stringify_type_hints_string(): diff --git a/utils/babel_runner.py b/utils/babel_runner.py index 514ce9eb5..32e6fe642 100644 --- a/utils/babel_runner.py +++ b/utils/babel_runner.py @@ -26,7 +26,7 @@ import sphinx ROOT = os.path.realpath(os.path.join(os.path.abspath(__file__), "..", "..")) -class compile_catalog_plusjs(compile_catalog): # NoQA +class compile_catalog_plusjs(compile_catalog): """ An extended command that writes all message strings that occur in JavaScript files to a JavaScript file along with the .mo file.