Abstract methods raise NotImplementedError
This commit is contained in:
parent
8de3bdcf29
commit
9684e1b638
@ -60,7 +60,7 @@ class IAMRequestBase(ABC):
|
|||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def _raise_access_denied(self, iam_user_name):
|
def _raise_access_denied(self, iam_user_name):
|
||||||
pass
|
raise NotImplementedError()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _collect_policies_for_iam_user(iam_user_name):
|
def _collect_policies_for_iam_user(iam_user_name):
|
||||||
@ -88,7 +88,7 @@ class IAMRequestBase(ABC):
|
|||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def _create_auth(self, credentials):
|
def _create_auth(self, credentials):
|
||||||
pass
|
raise NotImplementedError()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _create_headers_for_aws_request(signed_headers, original_headers):
|
def _create_headers_for_aws_request(signed_headers, original_headers):
|
||||||
|
Loading…
Reference in New Issue
Block a user