From 5de6ce6b3e6a26143785146403962ed5793f7dee Mon Sep 17 00:00:00 2001 From: azimovMichael Date: Sun, 24 Apr 2022 17:11:00 +0300 Subject: [PATCH] fix linter fails --- sanic/request.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sanic/request.py b/sanic/request.py index 938554fc56..6435a2e0f3 100644 --- a/sanic/request.py +++ b/sanic/request.py @@ -823,11 +823,13 @@ def url_for(self, view_name: str, **kwargs) -> str: @property def scope(self) -> ASGIScope: """ - :return: The ASGI scope of the request. If the app isn't an ASGI app, then raises an exception. + :return: The ASGI scope of the request. + If the app isn't an ASGI app, then raises an exception. :rtype: Optional[ASGIScope] """ if not self.app.asgi: - raise NotImplementedError("App isn't running in ASGI mode. Scope is only available for ASGI apps.") + raise NotImplementedError("App isn't running in ASGI mode. " + "Scope is only available for ASGI apps.") return self.transport.scope