Skip to content

Commit 669bcc0

Browse files
Fix typos found by codespell
1 parent 7144f49 commit 669bcc0

File tree

16 files changed

+20
-20
lines changed

16 files changed

+20
-20
lines changed

doc/_themes/sphinx13/static/_sphinx_javascript_frameworks_compat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* _sphinx_javascript_frameworks_compat.js
33
* ~~~~~~~~~~
44
*
5-
* Compatability shim for jQuery and underscores.js.
5+
* Compatibility shim for jQuery and underscores.js.
66
*
77
* WILL BE REMOVED IN Sphinx 6.0
88
* xref RemovedInSphinx60Warning

doc/latex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Keys that you may want to override include:
144144

145145
.. hint::
146146

147-
After modifiying a core LaTeX key like this one, clean up the LaTeX
147+
After modifying a core LaTeX key like this one, clean up the LaTeX
148148
build repertory before next PDF build, else left-over auxiliary
149149
files are likely to break the build.
150150

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ ignore = [
269269
# pyupgrade
270270
"UP031", # replace with format specifiers
271271
]
272-
external = [ # Whitelist for RUF100 unkown code warnings
272+
external = [ # Whitelist for RUF100 unknown code warnings
273273
"E704",
274274
"W291",
275275
"W293",

sphinx/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ def add_js_file(self, filename: str | None, priority: int = 500,
970970
:param priority: Files are included in ascending order of priority. If
971971
multiple JavaScript files have the same priority,
972972
those files will be included in order of registration.
973-
See list of "prority range for JavaScript files" below.
973+
See list of "priority range for JavaScript files" below.
974974
:param loading_method: The loading method for the JavaScript file.
975975
Either ``'async'`` or ``'defer'`` are allowed.
976976
:param kwargs: Extra keyword arguments are included as attributes of the
@@ -1035,7 +1035,7 @@ def add_css_file(self, filename: str, priority: int = 500, **kwargs: Any) -> Non
10351035
:param priority: Files are included in ascending order of priority. If
10361036
multiple CSS files have the same priority,
10371037
those files will be included in order of registration.
1038-
See list of "prority range for CSS files" below.
1038+
See list of "priority range for CSS files" below.
10391039
:param kwargs: Extra keyword arguments are included as attributes of the
10401040
``<link>`` tag.
10411041

sphinx/builders/latex/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""consntants for LaTeX builder."""
1+
"""constants for LaTeX builder."""
22

33
from __future__ import annotations
44

sphinx/domains/c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
_string_re = re.compile(r"[LuU8]?('([^'\\]*(?:\\.[^'\\]*)*)'"
9999
r'|"([^"\\]*(?:\\.[^"\\]*)*)")', re.S)
100100

101-
# bool, complex, and imaginary are macro "keywords", so they are handled seperately
101+
# bool, complex, and imaginary are macro "keywords", so they are handled separately
102102
_simple_type_specifiers_re = re.compile(r"""
103103
\b(
104104
void|_Bool

sphinx/domains/std.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ def _resolve_term_xref(self, env: BuildEnvironment, fromdocname: str,
980980
if result:
981981
return result
982982
else:
983-
# fallback to case insentive match
983+
# fallback to case insensitive match
984984
if target.lower() in self._terms:
985985
docname, labelid = self._terms[target.lower()]
986986
return make_refnode(builder, fromdocname, docname, labelid, contnode)

sphinx/ext/apidoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def is_skipped_package(dirname: str, opts: Any, excludes: list[str] = []) -> boo
175175
files = glob.glob(path.join(dirname, '*.py'))
176176
regular_package = any(f for f in files if is_initpy(f))
177177
if not regular_package and not opts.implicit_namespaces:
178-
# *dirname* is not both a regular package and an implicit namespace pacage
178+
# *dirname* is not both a regular package and an implicit namespace package
179179
return True
180180

181181
# Check there is some showable module inside package

sphinx/ext/autodoc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ def import_object(self, raiseerror: bool = False) -> bool:
14771477

14781478
def _get_signature(self) -> tuple[Any | None, str | None, Signature | None]:
14791479
if inspect.isNewType(self.object) or isinstance(self.object, TypeVar):
1480-
# Supress signature
1480+
# Suppress signature
14811481
return None, None, None
14821482

14831483
def get_user_defined_function_or_method(obj: Any, attr: str) -> Any:

sphinx/texinputs/sphinx.sty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ will be set to white}%
905905
% than saving the box would-be parameters. Advantage is that this will not
906906
% have to be modified if additional keys are added in future (e.g. for
907907
% elliptic corners). Storing obeys TeX groups. (these details would be
908-
% relevant only for some genuine independant LaTeX package and manual user
908+
% relevant only for some genuine independent LaTeX package and manual user
909909
% authored mark-up, not Sphinx auto mark-up).
910910
\newcommand\sphinxboxsetup[1]{%
911911
\setkeys{sphinxbox}{#1}%

0 commit comments

Comments
 (0)