Skip to content

Commit 21dbba6

Browse files
committed
fix import issue _typeshed and improve test
1 parent 4ce008f commit 21dbba6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

scaleway-core/scaleway_core/utils/resolve_one_of.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
from __future__ import annotations
22
from collections.abc import Callable
3-
from scaleway_core.profile.profile import ProfileDefaults
43
from dataclasses import dataclass
54
from typing import Any, Dict, Generic, List, Optional, TypeVar
6-
from _typeshed import SupportsKeysAndGetItem
5+
6+
from typing import TYPE_CHECKING
7+
8+
if TYPE_CHECKING:
9+
from _typeshed import SupportsKeysAndGetItem
10+
711

812
T = TypeVar("T")
913

scaleway/tests/test_vpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class TestScalewayVPCV2(unittest.TestCase):
1414
@classmethod
1515
def setUpClass(self):
16-
self.client = Client.from_env()
16+
self.client = Client.from_config_file_and_env()
1717
self.vpcAPI = VpcV2API(self.client)
1818
self.project_id = self.client.default_project_id
1919
self.region = region

0 commit comments

Comments
 (0)