Typing
This commit is contained in:
parent
ba530d3c51
commit
abdfb274e4
@ -266,7 +266,7 @@ class _AsyncBulk:
|
||||
) as telemetry:
|
||||
try:
|
||||
reply = await bwc.conn.write_command(request_id, msg, bwc.codec) # type: ignore[misc]
|
||||
telemetry.publish_succeeded(reply)
|
||||
telemetry.publish_succeeded(reply) # type: ignore[misc, arg-type]
|
||||
await client._process_response(reply, bwc.session) # type: ignore[arg-type]
|
||||
except Exception as exc:
|
||||
telemetry.publish_failed(exc)
|
||||
@ -310,7 +310,7 @@ class _AsyncBulk:
|
||||
else:
|
||||
# Comply with APM spec.
|
||||
reply = {"ok": 1}
|
||||
telemetry.publish_succeeded(reply)
|
||||
telemetry.publish_succeeded(reply) # type: ignore[misc, arg-type]
|
||||
except Exception as exc:
|
||||
telemetry.publish_failed(exc)
|
||||
raise
|
||||
|
||||
@ -252,7 +252,7 @@ class _AsyncClientBulk:
|
||||
) as telemetry:
|
||||
try:
|
||||
reply = await bwc.conn.write_command(request_id, msg, bwc.codec) # type: ignore[misc, arg-type]
|
||||
telemetry.publish_succeeded(reply)
|
||||
telemetry.publish_succeeded(reply) # type: ignore[misc, arg-type]
|
||||
# Process the response from the server.
|
||||
await self.client._process_response(reply, bwc.session) # type: ignore[arg-type]
|
||||
except Exception as exc:
|
||||
@ -301,7 +301,7 @@ class _AsyncClientBulk:
|
||||
else:
|
||||
# Comply with APM spec.
|
||||
reply = {"ok": 1}
|
||||
telemetry.publish_succeeded(reply)
|
||||
telemetry.publish_succeeded(reply) # type: ignore[misc, arg-type]
|
||||
except Exception as exc:
|
||||
telemetry.publish_failed(exc)
|
||||
# Top-level error will be embedded in ClientBulkWriteException.
|
||||
|
||||
@ -310,7 +310,7 @@ class _Bulk:
|
||||
else:
|
||||
# Comply with APM spec.
|
||||
reply = {"ok": 1}
|
||||
telemetry.publish_succeeded(reply)
|
||||
telemetry.publish_succeeded(reply) # type: ignore[misc, arg-type]
|
||||
except Exception as exc:
|
||||
telemetry.publish_failed(exc)
|
||||
raise
|
||||
|
||||
Loading…
Reference in New Issue
Block a user