Skip to content

Commit 492087f

Browse files
authored
chore: fix typos discovered by codespell (#2092)
1 parent 99c24f1 commit 492087f

File tree

17 files changed

+22
-22
lines changed

17 files changed

+22
-22
lines changed

docs/api/routing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ A custom router is any class that implements the following interface:
404404
Suffixed Responders
405405
-------------------
406406

407-
While Falcon encourages the REST architectural style, it is flexible enough to accomodate other
407+
While Falcon encourages the REST architectural style, it is flexible enough to accommodate other
408408
paradigms. Consider the task of building an API for a calculator which can both add and subtract
409409
two numbers. You could implement the
410410
following:
@@ -456,7 +456,7 @@ style:
456456
app.add_route('/subtract', calc, suffix='subtract')
457457
458458
In the second iteration, using Suffixed Responders, we're able to group responders based on their
459-
actions rather than the data they represent. This gives us added flexibility to accomodate
459+
actions rather than the data they represent. This gives us added flexibility to accommodate
460460
situations in which a purely RESTful approach simply doesn't fit.
461461

462462
Default Router

docs/changes/3.0.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Fixed
269269
could raise an unexpected ``AttributeError`` when running under certain
270270
applications servers such as Meinheld. This has been fixed so that
271271
:func:`~falcon.deprecated` no longer relies on the availability of
272-
interpreter-specific stack frame instrospection capabilites. (`#1882 <https://github.com/falconry/falcon/issues/1882>`__)
272+
interpreter-specific stack frame instrospection capabilities. (`#1882 <https://github.com/falconry/falcon/issues/1882>`__)
273273

274274

275275
Misc

docs/ext/private_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
"""Private args module extension for Sphinx.
1616
17-
This extension exludes underscore-prefixed args and kwargs from the function
17+
This extension excludes underscore-prefixed args and kwargs from the function
1818
signature.
1919
"""
2020

docs/user/tutorial-asgi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ See also: :ref:`ASGI Server Installation <install_asgi_server>`.
9090

9191
While we're at it, let's install the handy
9292
`HTTPie <https://github.com/jakubroztocil/httpie>`_ HTTP client to help us
93-
excercise our app::
93+
exercise our app::
9494

9595
$ pip install httpie
9696

falcon/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def add_static_route(
592592
Warning:
593593
If you need to serve large files and/or progressive downloads (such
594594
as in the case of video streaming) through the Falcon app, check
595-
that your application server's timeout settings can accomodate the
595+
that your application server's timeout settings can accommodate the
596596
expected request duration (for instance, the popular Gunicorn kills
597597
``sync`` workers after 30 seconds unless configured otherwise).
598598
@@ -842,7 +842,7 @@ def set_error_serializer(self, serializer):
842842
843843
Note:
844844
A custom serializer set with this method may not be called if the
845-
default error handler for :class:`~.HTTPError` has been overriden.
845+
default error handler for :class:`~.HTTPError` has been overridden.
846846
See :meth:`~.add_error_handler` for more details.
847847
848848
The :class:`~.HTTPError` class contains helper methods,

falcon/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
MEDIA_XML = 'application/xml'
104104

105105
# NOTE(kgriffs): RFC 4329 recommends application/* over text/.
106-
# futhermore, parsers are required to respect the Unicode
106+
# furthermore, parsers are required to respect the Unicode
107107
# encoding signature, if present in the document, and to default
108108
# to UTF-8 when not present. Note, however, that implementations
109109
# are not required to support anything besides UTF-8, so it is

falcon/hooks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def _wrap_with_after(responder, action, action_args, action_kwargs, is_async):
181181
responder: The responder method to wrap.
182182
action: A function with a signature similar to a resource responder
183183
method, taking the form ``func(req, resp, resource)``.
184-
action_args: Additional positional agruments to pass to *action*.
184+
action_args: Additional positional arguments to pass to *action*.
185185
action_kwargs: Additional keyword arguments to pass to *action*.
186186
is_async: Set to ``True`` for cythonized responders that are
187187
actually coroutine functions, since such responders can not
@@ -227,7 +227,7 @@ def _wrap_with_before(responder, action, action_args, action_kwargs, is_async):
227227
responder: The responder method to wrap.
228228
action: A function with a similar signature to a resource responder
229229
method, taking the form ``func(req, resp, resource, params)``.
230-
action_args: Additional positional agruments to pass to *action*.
230+
action_args: Additional positional arguments to pass to *action*.
231231
action_kwargs: Additional keyword arguments to pass to *action*.
232232
is_async: Set to ``True`` for cythonized responders that are
233233
actually coroutine functions, since such responders can not
@@ -289,7 +289,7 @@ def _merge_responder_args(args, kwargs, argnames):
289289
# signature.
290290
for i, argname in enumerate(argnames):
291291
# NOTE(kgriffs): extra_argnames may contain keyword arguments,
292-
# which wont be in the args list, and are already in the kwargs
292+
# which won't be in the args list, and are already in the kwargs
293293
# dict anyway, so detect and skip them.
294294
if argname not in kwargs:
295295
kwargs[argname] = args[i]

falcon/http_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,6 @@ def to_xml(self):
213213
)
214214

215215

216-
# NOTE: initialized in falcon.media.json, that is always imported since Request/Respose
216+
# NOTE: initialized in falcon.media.json, that is always imported since Request/Response
217217
# are imported by falcon init.
218218
_DEFAULT_JSON_HANDLER = None

falcon/inspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def __init__(self, prefix: str, name: str, source_info: str):
362362

363363

364364
class ErrorHandlerInfo(_Traversable):
365-
"""Desribes an error handler.
365+
"""Describes an error handler.
366366
367367
Args:
368368
error (name): The name of the error type.

falcon/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class Request:
288288
block indefinitely. It's a good idea to test your WSGI
289289
server to find out how it behaves.
290290
291-
This can be particulary problematic when a request body is
291+
This can be particularly problematic when a request body is
292292
expected, but none is given. In this case, the following
293293
call blocks under certain WSGI servers::
294294

0 commit comments

Comments
 (0)