Skip to content

Commit f94d6af

Browse files
zeevdrclaude
andcommitted
Rename get() type param to value_type in sync client
Part of #57. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 18ca52e commit f94d6af

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

sdk/src/opendecree/client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,23 +176,23 @@ def check_compatibility(self) -> None:
176176
def get(self, tenant_id: str, field_path: str) -> str: ...
177177

178178
@overload
179-
def get(self, tenant_id: str, field_path: str, type: type[bool]) -> bool: ...
179+
def get(self, tenant_id: str, field_path: str, value_type: type[bool]) -> bool: ...
180180

181181
@overload
182-
def get(self, tenant_id: str, field_path: str, type: type[int]) -> int: ...
182+
def get(self, tenant_id: str, field_path: str, value_type: type[int]) -> int: ...
183183

184184
@overload
185-
def get(self, tenant_id: str, field_path: str, type: type[float]) -> float: ...
185+
def get(self, tenant_id: str, field_path: str, value_type: type[float]) -> float: ...
186186

187187
@overload
188-
def get(self, tenant_id: str, field_path: str, type: type[timedelta]) -> timedelta: ...
188+
def get(self, tenant_id: str, field_path: str, value_type: type[timedelta]) -> timedelta: ...
189189

190190
@overload
191191
def get(
192192
self,
193193
tenant_id: str,
194194
field_path: str,
195-
type: type[str],
195+
value_type: type[str],
196196
*,
197197
nullable: bool,
198198
) -> str | None: ...
@@ -201,7 +201,7 @@ def get(
201201
self,
202202
tenant_id: str,
203203
field_path: str,
204-
type: type | None = None,
204+
value_type: type | None = None,
205205
*,
206206
nullable: bool = False,
207207
) -> object:
@@ -213,7 +213,7 @@ def get(
213213
Args:
214214
tenant_id: Tenant UUID.
215215
field_path: Dot-separated field path (e.g., "payments.fee").
216-
type: Target type (str, int, float, bool, timedelta). Defaults to str.
216+
value_type: Target type (str, int, float, bool, timedelta). Defaults to str.
217217
nullable: If True, return None for null/unset values instead of raising.
218218
219219
Returns:
@@ -223,7 +223,7 @@ def get(
223223
NotFoundError: If the field has no value (and nullable is False).
224224
TypeMismatchError: If the value cannot be converted to the requested type.
225225
"""
226-
target_type = type or str
226+
target_type = value_type or str
227227

228228
def _call() -> object:
229229
resp = self._stub.GetField(

0 commit comments

Comments
 (0)