mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Address flake8 errors in whitespace linting
This commit is contained in:
parent
f89f787cc9
commit
10dba797f2
@ -608,9 +608,9 @@ class Sphinx:
|
|||||||
:param node: A node class
|
:param node: A node class
|
||||||
:param figtype: The type of enumerable nodes. Each figtype has individual numbering
|
:param figtype: The type of enumerable nodes. Each figtype has individual numbering
|
||||||
sequences. As system figtypes, ``figure``, ``table`` and
|
sequences. As system figtypes, ``figure``, ``table`` and
|
||||||
``code-block`` are defined. It is possible to add custom nodes to these
|
``code-block`` are defined. It is possible to add custom nodes to
|
||||||
default figtypes. It is also possible to define new custom figtype if
|
these default figtypes. It is also possible to define new custom
|
||||||
a new figtype is given.
|
figtype if a new figtype is given.
|
||||||
:param title_getter: A getter function to obtain the title of node. It takes an
|
:param title_getter: A getter function to obtain the title of node. It takes an
|
||||||
instance of the enumerable node, and it must return its title as
|
instance of the enumerable node, and it must return its title as
|
||||||
string. The title is used to the default title of references for
|
string. The title is used to the default title of references for
|
||||||
|
@ -215,7 +215,8 @@ class Config:
|
|||||||
|
|
||||||
def pre_init_values(self) -> None:
|
def pre_init_values(self) -> None:
|
||||||
"""
|
"""
|
||||||
Initialize some limited config variables before initializing i18n and loading extensions
|
Initialize some limited config variables before initializing i18n and loading
|
||||||
|
extensions.
|
||||||
"""
|
"""
|
||||||
variables = ['needs_sphinx', 'suppress_warnings', 'language', 'locale_dirs']
|
variables = ['needs_sphinx', 'suppress_warnings', 'language', 'locale_dirs']
|
||||||
for name in variables:
|
for name in variables:
|
||||||
|
Loading…
Reference in New Issue
Block a user