Skip to content

Commit a499938

Browse files
committed
feature/sdk_python#151 Small circular import fix.
1 parent f23bdce commit a499938

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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
import typing
44
from typing import Dict, List
55

6-
from bunq import T
6+
from bunq.sdk.util.type_alias import T
77
from bunq.sdk.http.bunq_response import BunqResponse
88
from bunq.sdk.http.bunq_response_raw import BunqResponseRaw
99
from bunq.sdk.json import converter

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
],
6363

6464
# Require Python version equal or higher than the requested version.
65-
python_requires='>=3.5.3',
65+
python_requires='>=3.7.0',
6666

6767
# Keywords related to the project
6868
keywords='open-banking sepa bunq finance api payment',

tests/context/test_user_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from bunq.sdk.context.user_context import UserContext
21
from tests.bunq_test import BunqSdkTestCase
32

43

@@ -14,7 +13,8 @@ def setUpClass(cls):
1413
cls._API_CONTEXT = cls._get_api_context()
1514

1615
def test_build_user_context(self):
17-
user_context = UserContext(self._API_CONTEXT.session_context.user_id)
16+
from bunq.sdk.context.user_context import UserContext
17+
user_context = UserContext(self._API_CONTEXT.session_context.user_id, self._API_CONTEXT.session_context.user)
1818
user_context.refresh_user_context()
1919

2020
self.assertIsNotNone(user_context.user_id)

0 commit comments

Comments
 (0)