Skip to content

Commit 712e963

Browse files
committed
feature/python-sdk-refactor Removed unnecessary python 2 object inheritance.
1 parent b73076f commit 712e963

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

bunq/sdk/context/api_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from bunq.sdk.model.core.session_server import SessionServer
1919

2020

21-
class ApiContext(object):
21+
class ApiContext:
2222
"""
2323
:type _environment_type: ApiEnvironmentType
2424
:type _api_key: str

bunq/sdk/context/bunq_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from bunq.sdk.exception.bunq_exception import BunqException
44

55

6-
class BunqContext(object):
6+
class BunqContext:
77
_ERROR_CLASS_SHOULD_NOT_BE_INITIALIZED = 'This class should not be instantiated'
88
_ERROR_API_CONTEXT_HAS_NOT_BEEN_LOADED = 'ApiContext has not been loaded. Please load ApiContext in BunqContext'
99
_ERROR_USER_CONTEXT_HAS_NOT_BEEN_LOADED = 'UserContext has not been loaded, please load this by loading ApiContext.'

bunq/sdk/context/installation_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from Cryptodome.PublicKey.RSA import RsaKey
33

44

5-
class InstallationContext(object):
5+
class InstallationContext:
66
"""
77
:type _token: str
88
:type _private_key_client: RSA.RsaKey

bunq/sdk/context/session_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import datetime
22

33

4-
class SessionContext(object):
4+
class SessionContext:
55
"""
66
:type _token: str
77
:type _expiry_time: datetime.datetime

bunq/sdk/context/user_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from bunq.sdk.model.generated.endpoint import UserPerson, UserCompany, UserApiKey, MonetaryAccountBank
55

66

7-
class UserContext(object):
7+
class UserContext:
88
_ERROR_UNEXPECTED_USER_INSTANCE = '"{}" is unexpected user instance.'
99
_ERROR_NO_ACTIVE_MONETARY_ACCOUNT_FOUND = 'No active monetary account found.'
1010
_STATUS_ACTIVE = 'ACTIVE'

bunq/sdk/json/converter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
_JSON_INDENT = 4
1111

1212

13-
class JsonAdapter(object):
13+
class JsonAdapter:
1414
# Error constants
1515
_ERROR_COULD_NOT_FIND_CLASS = 'Could not find class: {}'
1616

@@ -538,7 +538,7 @@ def _serialize_dict(cls, dict_):
538538
return obj_serialized
539539

540540

541-
class ValueTypes(object):
541+
class ValueTypes:
542542
"""
543543
:type _main: type|None
544544
:type _sub: type|None
@@ -570,7 +570,7 @@ def sub(self):
570570
return self._sub
571571

572572

573-
class ValueSpecs(object):
573+
class ValueSpecs:
574574
"""
575575
:type _name: str|None
576576
:type _types: ValueTypes|None

bunq/sdk/model/core/bunq_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from bunq.sdk.json import converter
44

55

6-
class BunqModel(object):
6+
class BunqModel:
77
# Field constants
88
_FIELD_RESPONSE = 'Response'
99
_FIELD_PAGINATION = 'Pagination'

0 commit comments

Comments
 (0)