Skip to content

Commit c08253e

Browse files
committed
Fix typing
1 parent cc7197d commit c08253e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scaleway-core/scaleway_core/utils/resolve_one_of.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from collections.abc import Callable
22
from dataclasses import dataclass
33
from typing import Any, Dict, Generic, List, Optional, TypeVar
4+
from _typeshed import SupportsKeysAndGetItem
45

56
from scaleway_core.profile import ProfileDefaults
67

@@ -17,7 +18,7 @@ class OneOfPossibility(Generic[T]):
1718

1819
def resolve_one_of(
1920
possibilities: List[OneOfPossibility[Any]], is_required: bool = False
20-
) -> dict[str, Any] | str | dict[Any, Any]:
21+
) -> SupportsKeysAndGetItem[str, Any]:
2122
"""
2223
Resolves the ideal parameter and value amongst an optional list.
2324
Uses marshal_func if provided.

0 commit comments

Comments
 (0)