Skip to content

Commit ba530d3

Browse files
committed
Typing
1 parent cf8f234 commit ba530d3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pymongo/synchronous/bulk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def write_command(
266266
) as telemetry:
267267
try:
268268
reply = bwc.conn.write_command(request_id, msg, bwc.codec) # type: ignore[misc]
269-
telemetry.publish_succeeded(reply)
269+
telemetry.publish_succeeded(reply) # type: ignore[misc, arg-type]
270270
client._process_response(reply, bwc.session) # type: ignore[arg-type]
271271
except Exception as exc:
272272
telemetry.publish_failed(exc)

pymongo/synchronous/client_bulk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def write_command(
252252
) as telemetry:
253253
try:
254254
reply = bwc.conn.write_command(request_id, msg, bwc.codec) # type: ignore[misc, arg-type]
255-
telemetry.publish_succeeded(reply)
255+
telemetry.publish_succeeded(reply) # type: ignore[misc, arg-type]
256256
# Process the response from the server.
257257
self.client._process_response(reply, bwc.session) # type: ignore[arg-type]
258258
except Exception as exc:
@@ -301,7 +301,7 @@ def unack_write(
301301
else:
302302
# Comply with APM spec.
303303
reply = {"ok": 1}
304-
telemetry.publish_succeeded(reply)
304+
telemetry.publish_succeeded(reply) # type: ignore[misc, arg-type]
305305
except Exception as exc:
306306
telemetry.publish_failed(exc)
307307
# Top-level error will be embedded in ClientBulkWriteException.

0 commit comments

Comments
 (0)