From 6607c63483fd9e07e95125b1b7e4f886b53bc3d6 Mon Sep 17 00:00:00 2001 From: mentix02 Date: Thu, 11 Jun 2020 16:53:59 -0700 Subject: [PATCH] Made abc.ABC as a super class for BaseAuthentication. --- rest_framework/authentication.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py index a2ba53480..43950f697 100644 --- a/rest_framework/authentication.py +++ b/rest_framework/authentication.py @@ -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. """