diff --git a/sanic/app.py b/sanic/app.py index 47a600cba9..01d3af2aee 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -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` @@ -1194,7 +1194,7 @@ def add_task( `See user guide re: 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 diff --git a/sanic/http/http3.py b/sanic/http/http3.py index 18919ba5ff..e3ecd86ba1 100644 --- a/sanic/http/http3.py +++ b/sanic/http/http3.py @@ -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]) diff --git a/sanic/request.py b/sanic/request.py index 24a8576517..927c124a8b 100644 --- a/sanic/request.py +++ b/sanic/request.py @@ -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 `_ diff --git a/sanic/server/websockets/impl.py b/sanic/server/websockets/impl.py index aaccfaca73..2bc3fc5e0f 100644 --- a/sanic/server/websockets/impl.py +++ b/sanic/server/websockets/impl.py @@ -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():