Skip to content

Commit b4871a7

Browse files
committed
PYTHON-5676 Simplify published_reply annotation in _run_command
1 parent 243ffed commit b4871a7

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

pymongo/asynchronous/command_runner.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ async def _run_command(
274274
raise
275275

276276
duration = datetime.datetime.now() - start
277-
published_reply: _DocumentOut
278277
published_reply = docs[0]
279278
if client is not None and _COMMAND_LOGGER.isEnabledFor(logging.DEBUG):
280279
_debug_log(

pymongo/synchronous/command_runner.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ def _run_command(
274274
raise
275275

276276
duration = datetime.datetime.now() - start
277-
published_reply: _DocumentOut
278277
published_reply = docs[0]
279278
if client is not None and _COMMAND_LOGGER.isEnabledFor(logging.DEBUG):
280279
_debug_log(

0 commit comments

Comments
 (0)