Skip to content

Commit

Permalink
docs: Fix a few typos (#2502)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
  • Loading branch information
timgates42 and ahopkins committed Jul 24, 2022
1 parent 2fc21ad commit 312ab29
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sanic/app.py
Expand Up @@ -999,7 +999,7 @@ def test_client(self): # noqa
def asgi_client(self): # noqa
"""
A testing client that uses ASGI to reach into the application to
execute hanlers.
execute handlers.
:return: testing client
:rtype: :class:`SanicASGITestClient`
Expand Down Expand Up @@ -1194,7 +1194,7 @@ def add_task(
`See user guide re: background tasks
<https://sanicframework.org/guide/basics/tasks.html#background-tasks>`__
:param task: future, couroutine or awaitable
:param task: future, coroutine or awaitable
"""
try:
loop = self.loop # Will raise SanicError if loop is not started
Expand Down
2 changes: 1 addition & 1 deletion sanic/http/http3.py
Expand Up @@ -378,7 +378,7 @@ def get_config(
app: Sanic, ssl: Union[SanicSSLContext, CertSelector, SSLContext]
):
# TODO:
# - proper selection needed if servince with multiple certs insted of
# - proper selection needed if service with multiple certs insted of
# just taking the first
if isinstance(ssl, CertSelector):
ssl = cast(SanicSSLContext, ssl.sanic_select[0])
Expand Down
2 changes: 1 addition & 1 deletion sanic/request.py
Expand Up @@ -188,7 +188,7 @@ def __repr__(self):
@classmethod
def get_current(cls) -> Request:
"""
Retrieve the currrent request object
Retrieve the current request object
This implements `Context Variables
<https://docs.python.org/3/library/contextvars.html>`_
Expand Down
2 changes: 1 addition & 1 deletion sanic/server/websockets/impl.py
Expand Up @@ -252,7 +252,7 @@ async def keepalive_ping(self) -> None:

def _force_disconnect(self) -> bool:
"""
Internal methdod used by end_connection and fail_connection
Internal method used by end_connection and fail_connection
only when the graceful auto-closer cannot be used
"""
if self.auto_closer_task and not self.auto_closer_task.done():
Expand Down

0 comments on commit 312ab29

Please sign in to comment.