Skip to content

Commit

Permalink
Add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
azimovMichael committed Apr 18, 2022
1 parent f0c7b34 commit 584b9b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sanic/request.py
Expand Up @@ -823,8 +823,8 @@ def url_for(self, view_name: str, **kwargs) -> str:
@property
def scope(self) -> Optional[ASGIScope]:
"""
:return: the URL
:rtype: str
:return: The ASGI scope of the request. If the app isn't an ASGI app, then returns None.
:rtype: Optional[ASGIScope]
"""

return self.transport.scope if self.app.asgi else None
Expand Down

0 comments on commit 584b9b7

Please sign in to comment.