fix NotImplementedError (#509)

This commit is contained in:
秋葉 2019-05-13 21:54:46 +08:00 committed by Tom Christie
parent d23bfd0d8f
commit 7eb0e4e594
1 changed files with 4 additions and 4 deletions

View File

@ -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):