Skip to content

Commit

Permalink
Adapt super() call to what we use elsewhere, remove obsolete docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Hendrikx committed Oct 5, 2018
1 parent bdb9518 commit 1ffb21f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions mollie/api/objects/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ def __init__(self, data, resource=None, client=None):
"""
Create a new object from API result data.
We optionally initialize the _resource variable to be able to use this when querying the API
for additional data defined as an endpoint in the _links attribute.
TODO: remove self._resource when all of its usage is refactored to using self.client
"""
super(Base, self).__init__(data)
Expand Down
2 changes: 1 addition & 1 deletion mollie/api/objects/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class List(Base):
current = None

def __init__(self, result, object_type, client=None):
Base.__init__(self, result, client=client)
super(List, self).__init__(result, client=client)
self.object_type = object_type

def __len__(self):
Expand Down

0 comments on commit 1ffb21f

Please sign in to comment.