Skip to content

Commit 6556330

Browse files
zeevdrclaude
andcommitted
fix(client): add missing type arguments for list[Any] to satisfy mypy
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ac867ce commit 6556330

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

sdk/src/opendecree/_channel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
from __future__ import annotations
44

5+
from typing import Any
6+
57
import grpc
68

79
_DEFAULT_KEEPALIVE_TIME_MS = 30000
@@ -99,7 +101,7 @@ def create_aio_channel(
99101
insecure: bool = True,
100102
credentials: grpc.ChannelCredentials | None = None,
101103
token: str | None = None,
102-
interceptors: list | None = None,
104+
interceptors: list[Any] | None = None,
103105
max_send_message_length: int | None = None,
104106
max_recv_message_length: int | None = None,
105107
keepalive_time_ms: int = _DEFAULT_KEEPALIVE_TIME_MS,

sdk/src/opendecree/async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import warnings
1111
from datetime import timedelta
12-
from typing import TYPE_CHECKING, overload
12+
from typing import TYPE_CHECKING, Any, overload
1313

1414
if TYPE_CHECKING:
1515
from opendecree.async_watcher import AsyncConfigWatcher
@@ -54,7 +54,7 @@ def __init__(
5454
timeout: float = 10.0,
5555
retry: RetryConfig | None = None,
5656
check_version: bool = False,
57-
interceptors: list | None = None,
57+
interceptors: list[Any] | None = None,
5858
) -> None:
5959
"""Create a new AsyncConfigClient.
6060

sdk/src/opendecree/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import warnings
1515
from datetime import timedelta
16-
from typing import TYPE_CHECKING, overload
16+
from typing import TYPE_CHECKING, Any, overload
1717

1818
if TYPE_CHECKING:
1919
from opendecree.watcher import ConfigWatcher
@@ -57,7 +57,7 @@ def __init__(
5757
timeout: float = 10.0,
5858
retry: RetryConfig | None = None,
5959
check_version: bool = False,
60-
interceptors: list | None = None,
60+
interceptors: list[Any] | None = None,
6161
) -> None:
6262
"""Create a new ConfigClient.
6363
@@ -110,7 +110,7 @@ def __init__(
110110
subject=subject, role=role, tenant_id=tenant_id, token=metadata_token
111111
)
112112
# User interceptors are outermost; auth interceptor runs inside them.
113-
all_interceptors: list = list(interceptors) if interceptors else []
113+
all_interceptors: list[Any] = list(interceptors) if interceptors else []
114114
if metadata:
115115
all_interceptors.append(AuthInterceptor(metadata))
116116

0 commit comments

Comments
 (0)