Skip to content

Commit 2f40863

Browse files
Fix Wait type annotations: use typing.Any instead of builtin any
Signed-off-by: coactive-victor <victor@coactive.ai>
1 parent db20e3e commit 2f40863

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

databricks/sdk/service/_internal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import datetime
22
import urllib.parse
3-
from typing import Callable, Dict, Generic, List, Optional, Type, TypeVar
3+
from typing import Any, Callable, Dict, Generic, List, Optional, Type, TypeVar
44

55
from google.protobuf.duration_pb2 import Duration
66
from google.protobuf.timestamp_pb2 import Timestamp
@@ -143,13 +143,13 @@ def _repeated_fieldmask(d: Dict[str, any], field: str) -> Optional[List[FieldMas
143143

144144
class Wait(Generic[ReturnType]):
145145

146-
def __init__(self, waiter: Callable, response: any = None, **kwargs) -> None:
146+
def __init__(self, waiter: Callable, response: Any = None, **kwargs) -> None:
147147
self.response = response
148148

149149
self._waiter = waiter
150150
self._bind = kwargs
151151

152-
def __getattr__(self, key) -> any:
152+
def __getattr__(self, key) -> Any:
153153
return self._bind[key]
154154

155155
def bind(self) -> dict:

0 commit comments

Comments
 (0)