Skip to content

Commit 4442f32

Browse files
authored
Merge pull request #9621 from cclauss/codespell-again
Fix typos discovered by codespell (again)
2 parents 336605b + d2c95df commit 4442f32

37 files changed

+60
-60
lines changed

CHANGES

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ Incompatible changes
314314
``autodoc_typehints='description'`` and ``autoclass_content='class'`` set
315315
* #8898: extlinks: "%s" becomes required keyword in the link caption string
316316
* domain: The ``Index`` class becomes subclasses of ``abc.ABC`` to indicate
317-
methods that must be overrided in the concrete classes
317+
methods that must be overridden in the concrete classes
318318
* #4826: py domain: The structure of python objects is changed. A boolean value
319319
is added to indicate that the python object is canonical one
320320
* #7425: MathJax: The MathJax was changed from 2 to 3. Users using a custom
@@ -1026,7 +1026,7 @@ Bugs fixed
10261026
module has submodules
10271027
* #4258: napoleon: decorated special methods are not shown
10281028
* #7799: napoleon: parameters are not escaped for combined params in numpydoc
1029-
* #7780: napoleon: multiple paramaters declaration in numpydoc was wrongly
1029+
* #7780: napoleon: multiple parameters declaration in numpydoc was wrongly
10301030
recognized when napoleon_use_params=True
10311031
* #7715: LaTeX: ``numfig_secnum_depth > 1`` leads to wrong figure links
10321032
* #7846: html theme: XML-invalid files were generated
@@ -1392,7 +1392,7 @@ Incompatible changes
13921392
has been renamed to ``sphinx_line_type``.
13931393
* #6462: double backslashes in domain directives are no longer replaced by
13941394
single backslashes as default. A new configuration value
1395-
:confval:`strip_signature_backslash` can be used by users to reenable it.
1395+
:confval:`strip_signature_backslash` can be used by users to re-enable it.
13961396

13971397
3.0.0 final
13981398

@@ -1465,7 +1465,7 @@ Features added
14651465

14661466
- Cross-referencing respecting the current scope.
14671467
- Possible to document anonymous entities.
1468-
- More specific directives and roles for each type of entitiy,
1468+
- More specific directives and roles for each type of entity,
14691469
e.g., handling scoping of enumerators.
14701470
- New role :rst:role:`c:expr` for rendering expressions and types
14711471
in text.
@@ -1852,7 +1852,7 @@ Features added
18521852
* #6533: LaTeX: refactor visit_enumerated_list() to use ``\sphinxsetlistlabels``
18531853
* #6628: quickstart: Use ``https://docs.python.org/3/`` for default setting of
18541854
:confval:`intersphinx_mapping`
1855-
* #6419: sphinx-build: give reasons why rebuilded
1855+
* #6419: sphinx-build: give reasons why rebuilt
18561856

18571857
Bugs fixed
18581858
----------

doc/latex.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ The colors used in the above are provided by the ``svgnames`` option of the
574574
It is possible to insert further uses of the ``\sphinxsetup`` LaTeX macro
575575
directly into the body of the document, via the help of the :rst:dir:`raw`
576576
directive. This chapter is styled in the PDF output using the following at the
577-
start of the chaper::
577+
start of the chapter::
578578

579579
.. raw:: latex
580580

@@ -607,7 +607,7 @@ macros may be significant.
607607
Do not use quotes to enclose values, whether numerical or strings.
608608

609609
``bookmarksdepth``
610-
Controls the depth of the collapsable bookmarks panel in the PDF.
610+
Controls the depth of the collapsible bookmarks panel in the PDF.
611611
May be either a number (e.g. ``3``) or a LaTeX sectioning name (e.g.
612612
``subsubsection``, i.e. without backslash).
613613
For details, refer to the ``hyperref`` LaTeX docs.

doc/man/sphinx-quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Options
3535

3636
.. option:: --no-sep
3737

38-
If specified, create build directroy under source directroy.
38+
If specified, create build directory under source directory.
3939

4040
.. option:: --dot=DOT
4141

doc/usage/extensions/graphviz.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ It adds these directives:
8383
.. versionadded:: 1.6
8484
8585
.. rst:directive:option:: class: class names
86-
:type: a list of class names separeted by spaces
86+
:type: a list of class names separated by spaces
8787
8888
The class name of the graph.
8989
@@ -139,7 +139,7 @@ It adds these directives:
139139
.. versionadded:: 1.6
140140
141141
.. rst:directive:option:: class: class names
142-
:type: a list of class names separeted by spaces
142+
:type: a list of class names separated by spaces
143143
144144
The class name of the graph.
145145
@@ -191,7 +191,7 @@ It adds these directives:
191191
.. versionadded:: 1.6
192192
193193
.. rst:directive:option:: class: class names
194-
:type: a list of class names separeted by spaces
194+
:type: a list of class names separated by spaces
195195
196196
The class name of the graph.
197197

sphinx/builders/_epub_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
143143
embedded = True
144144
# disable download role
145145
download_support = False
146-
# dont' create links to original images from images
146+
# don't create links to original images from images
147147
html_scaled_image_link = False
148148
# don't generate search index or include search page
149149
search = False

sphinx/builders/latex/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
'babel': '\\usepackage{babel}',
200200
'fontenc': '\\usepackage{xeCJK}',
201201
# set formatcom=\xeCJKVerbAddon to prevent xeCJK from adding extra spaces in
202-
# fancyvrb Verbatim enviroment.
202+
# fancyvrb Verbatim environment.
203203
'fvset': '\\fvset{fontsize=\\small,formatcom=\\xeCJKVerbAddon}',
204204
},
205205
('xelatex', 'el'): {

sphinx/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def check_confval_types(app: "Sphinx", config: Config) -> None:
415415
if hasattr(default, '__call__'):
416416
default = default(config) # evaluate default value
417417
if default is None and not annotations:
418-
continue # neither inferrable nor expliclitly annotated types
418+
continue # neither inferable nor expliclitly annotated types
419419

420420
if annotations is Any:
421421
# any type of value is accepted

sphinx/domains/c.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2255,7 +2255,7 @@ def _parse_primary_expression(self) -> ASTExpression:
22552255

22562256
def _parse_initializer_list(self, name: str, open: str, close: str
22572257
) -> Tuple[List[ASTExpression], bool]:
2258-
# Parse open and close with the actual initializer-list inbetween
2258+
# Parse open and close with the actual initializer-list in between
22592259
# -> initializer-clause '...'[opt]
22602260
# | initializer-list ',' initializer-clause '...'[opt]
22612261
# TODO: designators
@@ -3446,7 +3446,7 @@ class CNamespacePopObject(SphinxDirective):
34463446
def run(self) -> List[Node]:
34473447
stack = self.env.temp_data.get('c:namespace_stack', None)
34483448
if not stack or len(stack) == 0:
3449-
logger.warning("C namespace pop on empty stack. Defaulting to gobal scope.",
3449+
logger.warning("C namespace pop on empty stack. Defaulting to global scope.",
34503450
location=self.get_location())
34513451
stack = []
34523452
else:

sphinx/domains/cpp.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
trailing-type-specifier ->
163163
rest-of-trailing
164164
("class" | "struct" | "union" | "typename") rest-of-trailing
165-
build-in -> "char" | "bool" | etc.
165+
built-in -> "char" | "bool" | etc.
166166
decltype-specifier
167167
rest-of-trailing -> (with some simplification)
168168
"::"[opt] list-of-elements-separated-by-::
@@ -1709,7 +1709,7 @@ def get_id(self, version: int) -> str:
17091709
else:
17101710
ids = _id_operator_v2
17111711
if self.op not in ids:
1712-
raise Exception('Internal error: Build-in operator "%s" can not '
1712+
raise Exception('Internal error: Built-in operator "%s" can not '
17131713
'be mapped to an id.' % self.op)
17141714
return ids[self.op]
17151715

@@ -2479,7 +2479,7 @@ def get_ptr_suffix_id(self, version: int) -> str: # only the array specifiers
24792479
def get_type_id(self, version: int, returnTypeId: str) -> str:
24802480
assert version >= 2
24812481
res = []
2482-
# TOOD: can we actually have both array ops and paramQual?
2482+
# TODO: can we actually have both array ops and paramQual?
24832483
res.append(self.get_ptr_suffix_id(version))
24842484
if self.paramQual:
24852485
res.append(self.get_modifiers_id(version))
@@ -5217,7 +5217,7 @@ def _parse_initializer_list(self, name: str, open: str, close: str
52175217
) -> Tuple[List[Union[ASTExpression,
52185218
ASTBracedInitList]],
52195219
bool]:
5220-
# Parse open and close with the actual initializer-list inbetween
5220+
# Parse open and close with the actual initializer-list in between
52215221
# -> initializer-clause '...'[opt]
52225222
# | initializer-list ',' initializer-clause '...'[opt]
52235223
self.skip_ws()
@@ -6358,7 +6358,7 @@ def _parse_type(self, named: Union[bool, str], outer: str = None) -> ASTType:
63586358
if outer in ('type', 'function'):
63596359
# We allow type objects to just be a name.
63606360
# Some functions don't have normal return types: constructors,
6361-
# destrutors, cast operators
6361+
# destructors, cast operators
63626362
prevErrors = []
63636363
startPos = self.pos
63646364
# first try without the type
@@ -6562,7 +6562,7 @@ def _parse_template_paramter(self) -> ASTTemplateParam:
65626562
self.fail("Expected 'typename' or 'class' after "
65636563
"template template parameter list.")
65646564
else:
6565-
self.fail("Expected 'typename' or 'class' in tbe "
6565+
self.fail("Expected 'typename' or 'class' in the "
65666566
"beginning of template type parameter.")
65676567
self.skip_ws()
65686568
parameterPack = self.skip_string('...')
@@ -7282,7 +7282,7 @@ class CPPNamespacePopObject(SphinxDirective):
72827282
def run(self) -> List[Node]:
72837283
stack = self.env.temp_data.get('cpp:namespace_stack', None)
72847284
if not stack or len(stack) == 0:
7285-
logger.warning("C++ namespace pop on empty stack. Defaulting to gobal scope.",
7285+
logger.warning("C++ namespace pop on empty stack. Defaulting to global scope.",
72867286
location=self.get_location())
72877287
stack = []
72887288
else:

sphinx/domains/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ def generate(self, docnames: Iterable[str] = None
10621062
# list of all modules, sorted by module name
10631063
modules = sorted(self.domain.data['modules'].items(),
10641064
key=lambda x: x[0].lower())
1065-
# sort out collapsable modules
1065+
# sort out collapsible modules
10661066
prev_modname = ''
10671067
num_toplevels = 0
10681068
for modname, (docname, node_id, synopsis, platforms, deprecated) in modules:

0 commit comments

Comments
 (0)