Skip to content

Commit abdfb27

Browse files
committed
Typing
1 parent ba530d3 commit abdfb27

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

pymongo/asynchronous/bulk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ async def write_command(
266266
) as telemetry:
267267
try:
268268
reply = await 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
await client._process_response(reply, bwc.session) # type: ignore[arg-type]
271271
except Exception as exc:
272272
telemetry.publish_failed(exc)
@@ -310,7 +310,7 @@ async def unack_write(
310310
else:
311311
# Comply with APM spec.
312312
reply = {"ok": 1}
313-
telemetry.publish_succeeded(reply)
313+
telemetry.publish_succeeded(reply) # type: ignore[misc, arg-type]
314314
except Exception as exc:
315315
telemetry.publish_failed(exc)
316316
raise

pymongo/asynchronous/client_bulk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ async def write_command(
252252
) as telemetry:
253253
try:
254254
reply = await 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
await self.client._process_response(reply, bwc.session) # type: ignore[arg-type]
258258
except Exception as exc:
@@ -301,7 +301,7 @@ async 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.

pymongo/synchronous/bulk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def unack_write(
310310
else:
311311
# Comply with APM spec.
312312
reply = {"ok": 1}
313-
telemetry.publish_succeeded(reply)
313+
telemetry.publish_succeeded(reply) # type: ignore[misc, arg-type]
314314
except Exception as exc:
315315
telemetry.publish_failed(exc)
316316
raise

0 commit comments

Comments
 (0)