File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -227,8 +227,8 @@ async def run_operation(
227
227
await operation .client ._process_response (first , operation .session ) # type: ignore[misc, arg-type]
228
228
# Append timeout details to MaxTimeMSExpired responses.
229
229
if first .get ("code" ) == 50 :
230
- timeout_details = _get_timeout_details (conn .opts )
231
- first ["errmsg" ] += format_timeout_details (timeout_details )
230
+ timeout_details = _get_timeout_details (conn .opts ) # type:ignore[has-type]
231
+ first ["errmsg" ] += format_timeout_details (timeout_details ) # type:ignore[index]
232
232
_check_command_response (first , conn .max_wire_version )
233
233
except Exception as exc :
234
234
duration = datetime .now () - start
Original file line number Diff line number Diff line change @@ -227,8 +227,8 @@ def run_operation(
227
227
operation .client ._process_response (first , operation .session ) # type: ignore[misc, arg-type]
228
228
# Append timeout details to MaxTimeMSExpired responses.
229
229
if first .get ("code" ) == 50 :
230
- timeout_details = _get_timeout_details (conn .opts )
231
- first ["errmsg" ] += format_timeout_details (timeout_details )
230
+ timeout_details = _get_timeout_details (conn .opts ) # type:ignore[has-type]
231
+ first ["errmsg" ] += format_timeout_details (timeout_details ) # type:ignore[index]
232
232
_check_command_response (first , conn .max_wire_version )
233
233
except Exception as exc :
234
234
duration = datetime .now () - start
You can’t perform that action at this time.
0 commit comments