mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05:00
Remove extraneous arguments to super
> dont need self.__class__, self in super - that's a python 2.x crutch. > super() is equivalent
This commit is contained in:
@@ -10,7 +10,7 @@ KEY_TYPE_TEST = 'test'
|
||||
|
||||
class ApiKeyApiClient(BaseAPIClient):
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__("a", "b", "c")
|
||||
super().__init__("a", "b", "c")
|
||||
|
||||
def init_app(self, app):
|
||||
self.base_url = app.config['API_HOST_NAME']
|
||||
|
||||
@@ -3,7 +3,7 @@ from notifications_python_client.base import BaseAPIClient
|
||||
|
||||
class EventsApiClient(BaseAPIClient):
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__("a", "b", "c")
|
||||
super().__init__("a", "b", "c")
|
||||
|
||||
def init_app(self, app):
|
||||
self.base_url = app.config['API_HOST_NAME']
|
||||
|
||||
@@ -7,7 +7,7 @@ from app.notify_client.models import InvitedUser
|
||||
|
||||
class InviteApiClient(BaseAPIClient):
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__("a", "b", "c")
|
||||
super().__init__("a", "b", "c")
|
||||
|
||||
def init_app(self, app):
|
||||
self.base_url = app.config['API_HOST_NAME']
|
||||
|
||||
@@ -6,7 +6,7 @@ from app.notify_client import _attach_current_user
|
||||
|
||||
class JobApiClient(BaseAPIClient):
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__("a", "b", "c")
|
||||
super().__init__("a", "b", "c")
|
||||
|
||||
def init_app(self, app):
|
||||
self.base_url = app.config['API_HOST_NAME']
|
||||
|
||||
@@ -3,7 +3,7 @@ from notifications_python_client.base import BaseAPIClient
|
||||
|
||||
class NotificationApiClient(BaseAPIClient):
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__("a", "b", "c")
|
||||
super().__init__("a", "b", "c")
|
||||
|
||||
def init_app(self, app):
|
||||
self.base_url = app.config['API_HOST_NAME']
|
||||
|
||||
@@ -4,7 +4,7 @@ from notifications_python_client.base import BaseAPIClient
|
||||
class OrganisationsClient(BaseAPIClient):
|
||||
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__("a", "b", "c")
|
||||
super().__init__("a", "b", "c")
|
||||
|
||||
def init_app(self, app):
|
||||
self.base_url = app.config['API_HOST_NAME']
|
||||
|
||||
@@ -4,7 +4,7 @@ from app.notify_client import _attach_current_user
|
||||
|
||||
class ProviderClient(BaseAPIClient):
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__("a", "b", "c")
|
||||
super().__init__("a", "b", "c")
|
||||
|
||||
def init_app(self, app):
|
||||
self.base_url = app.config['API_HOST_NAME']
|
||||
|
||||
@@ -9,7 +9,7 @@ class ServiceAPIClient(NotificationsAPIClient):
|
||||
# Fudge assert in the super __init__ so
|
||||
# we can set those variables later.
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__("a", "b", "c")
|
||||
super().__init__("a", "b", "c")
|
||||
|
||||
def init_app(self, application):
|
||||
self.base_url = application.config['API_HOST_NAME']
|
||||
|
||||
@@ -3,7 +3,7 @@ from notifications_python_client.base import BaseAPIClient
|
||||
|
||||
class StatusApiClient(BaseAPIClient):
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__("a", "b", "c")
|
||||
super().__init__("a", "b", "c")
|
||||
|
||||
def init_app(self, app):
|
||||
self.base_url = app.config['API_HOST_NAME']
|
||||
|
||||
@@ -3,7 +3,7 @@ from notifications_python_client.base import BaseAPIClient
|
||||
|
||||
class TemplateStatisticsApiClient(BaseAPIClient):
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__("a", "b", "c")
|
||||
super().__init__("a", "b", "c")
|
||||
|
||||
def init_app(self, app):
|
||||
self.base_url = app.config['API_HOST_NAME']
|
||||
|
||||
@@ -6,7 +6,7 @@ from app.notify_client.models import User
|
||||
|
||||
class UserApiClient(BaseAPIClient):
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__("a", "b", "c")
|
||||
super().__init__("a", "b", "c")
|
||||
|
||||
def init_app(self, app):
|
||||
self.base_url = app.config['API_HOST_NAME']
|
||||
|
||||
Reference in New Issue
Block a user