mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
Made abc.ABC as a super class for BaseAuthentication.
This commit is contained in:
parent
b677b7b15d
commit
6607c63483
|
@ -1,6 +1,7 @@
|
|||
"""
|
||||
Provides various authentication policies.
|
||||
"""
|
||||
import abc
|
||||
import base64
|
||||
import binascii
|
||||
|
||||
|
@ -30,7 +31,7 @@ class CSRFCheck(CsrfViewMiddleware):
|
|||
return reason
|
||||
|
||||
|
||||
class BaseAuthentication:
|
||||
class BaseAuthentication(abc.ABC):
|
||||
"""
|
||||
All authentication classes should extend BaseAuthentication.
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user