From 7eb0e4e594c7ccc8ec6528cef55b4ccec996b947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E8=91=89?= Date: Mon, 13 May 2019 21:54:46 +0800 Subject: [PATCH] fix NotImplementedError (#509) --- starlette/authentication.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/starlette/authentication.py b/starlette/authentication.py index c1726773..1fc6acae 100644 --- a/starlette/authentication.py +++ b/starlette/authentication.py @@ -94,7 +94,7 @@ class AuthenticationBackend: async def authenticate( self, conn: HTTPConnection ) -> typing.Optional[typing.Tuple["AuthCredentials", "BaseUser"]]: - raise NotImplemented() # pragma: no cover + raise NotImplementedError() # pragma: no cover class AuthCredentials: @@ -105,15 +105,15 @@ class AuthCredentials: class BaseUser: @property def is_authenticated(self) -> bool: - raise NotImplemented() # pragma: no cover + raise NotImplementedError() # pragma: no cover @property def display_name(self) -> str: - raise NotImplemented() # pragma: no cover + raise NotImplementedError() # pragma: no cover @property def identity(self) -> str: - raise NotImplemented() # pragma: no cover + raise NotImplementedError() # pragma: no cover class SimpleUser(BaseUser):