Skip to content

Commit 2064d20

Browse files
committed
feature/python-sdk-refactor Removed ABC parameters.
1 parent 626b832 commit 2064d20

File tree

7 files changed

+6
-22
lines changed

7 files changed

+6
-22
lines changed

bunq/sdk/model/core/bunq_model.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ def to_json(self):
2727

2828
return converter.class_to_json(self)
2929

30-
@staticmethod
31-
def from_json(json_str):
32-
raise NotImplementedError
33-
3430
@classmethod
3531
def _from_json_array_nested(cls, response_raw):
3632
"""

bunq/sdk/model/core/id.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
from abc import ABC
2-
31
from bunq.sdk.model.core.bunq_model import BunqModel
42

53

6-
class Id(BunqModel, ABC):
4+
class Id(BunqModel):
75
"""
86
:type _id_: int
97
"""

bunq/sdk/model/core/installation.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
from abc import ABC
2-
31
from bunq.sdk.http.api_client import ApiClient
42
from bunq.sdk.json import converter
53
from bunq.sdk.model.core.bunq_model import BunqModel
64

75

8-
class Installation(BunqModel, ABC):
6+
class Installation(BunqModel):
97
"""
108
:type _id_: Id
119
:type _token: SessionToken

bunq/sdk/model/core/public_key_server.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
from abc import ABC
2-
31
from bunq.sdk.model.core.bunq_model import BunqModel
42

53

6-
class PublicKeyServer(BunqModel, ABC):
4+
class PublicKeyServer(BunqModel):
75
"""
86
:type _server_public_key: str
97
"""

bunq/sdk/model/core/session_server.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
from abc import ABC
2-
31
from bunq.sdk.exception.bunq_exception import BunqException
42
from bunq.sdk.http.api_client import ApiClient
53
from bunq.sdk.json import converter
64
from bunq.sdk.model.core.bunq_model import BunqModel
75

86

9-
class SessionServer(BunqModel, ABC):
7+
class SessionServer(BunqModel):
108
"""
119
:type _id_: Id
1210
:type _token: SessionToken

bunq/sdk/model/core/session_token.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
from abc import ABC
2-
31
from bunq.sdk.model.core.bunq_model import BunqModel
42

53

6-
class SessionToken(BunqModel, ABC):
4+
class SessionToken(BunqModel):
75
"""
86
:type _id_: int
97
:type _created: str

bunq/sdk/model/core/uuid.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
from abc import ABC
2-
31
from bunq.sdk.model.core.bunq_model import BunqModel
42

53

6-
class Uuid(BunqModel, ABC):
4+
class Uuid(BunqModel):
75
"""
86
:type _uuid: str
97
"""

0 commit comments

Comments
 (0)