Skip to content

Commit 6345a29

Browse files
committed
Make type-checking happy again
1 parent 83054ab commit 6345a29

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

graphdatascience/query_runner/gds_arrow_client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,7 @@ def __init__(
142142
self._retry_config = retry_config
143143
self._logger = logging.getLogger("gds_arrow_client")
144144

145-
self._arrow_client_options: dict[str, Any] = arrow_client_options # type: ignore
146-
if self._arrow_client_options is None:
147-
self._arrow_client_options = {}
145+
self._arrow_client_options = arrow_client_options if arrow_client_options is not None else {}
148146

149147
if disable_server_verification:
150148
self._arrow_client_options["disable_server_verification"] = True
@@ -185,7 +183,7 @@ def _instantiate_flight_client(self) -> flight.FlightClient:
185183
AuthFactory(self._auth_middleware),
186184
UserAgentFactory(useragent=user_agent),
187185
]
188-
) # type: ignore
186+
)
189187

190188
return flight.FlightClient(location, **client_options)
191189

0 commit comments

Comments
 (0)