Skip to content

Commit

Permalink
Changes:
Browse files Browse the repository at this point in the history
- make only abstract, protocol would fail
  • Loading branch information
devkral committed Dec 20, 2024
1 parent 10d9113 commit 1fa018d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lilya/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ def sync_wrapper(*args: P.args, **kwargs: P.kwargs) -> typing.Any:
class AuthenticationError(Exception): ...


@typing.runtime_checkable
class AuthenticationBackend(ABC, typing.Protocol):
class AuthenticationBackend(ABC):
@abstractmethod
async def authenticate(self, connection: Connection) -> AuthResult | None: ...

Expand Down

0 comments on commit 1fa018d

Please sign in to comment.