diff --git a/sanic/app.py b/sanic/app.py index 47a600cb..01d3af2a 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -999,7 +999,7 @@ class Sanic(BaseSanic, RunnerMixin, metaclass=TouchUpMeta): 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 @@ class Sanic(BaseSanic, RunnerMixin, metaclass=TouchUpMeta): `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 18919ba5..e3ecd86b 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 24a85765..927c124a 100644 --- a/sanic/request.py +++ b/sanic/request.py @@ -188,7 +188,7 @@ class Request: @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 aaccfaca..2bc3fc5e 100644 --- a/sanic/server/websockets/impl.py +++ b/sanic/server/websockets/impl.py @@ -252,7 +252,7 @@ class WebsocketImplProtocol: 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():