Skip to content

Commit

Permalink
fix auth type
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrodnek committed May 17, 2024
1 parent 5b657fb commit 07dc28b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ packages = [
{ include = "pyview" },
]

version = "0.0.8a"
version = "0.0.9a"
description = "LiveView in Python"
authors = ["Larry Ogrodnek <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -72,6 +72,7 @@ build-backend = "poetry.core.masonry.api"
[tool.pyright]
exclude = [
".venv",
"examples/.venv",
"**/vendor",
"**/node_modules",
"**/__pycache__",
Expand Down
2 changes: 1 addition & 1 deletion pyview/auth/required.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def wrap(
) -> typing.Callable[_P, typing.Any]:
return starlette_requires(self.scopes, self.status_code, self.redirect)(func)

def has_required_auth(self, websocket: WebSocket) -> bool:
async def has_required_auth(self, websocket: WebSocket) -> bool:
return has_required_scope(websocket, self.scopes)


Expand Down

0 comments on commit 07dc28b

Please sign in to comment.