MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / partial_result

Method partial_result

pymongo/errors.py:353–365  ·  view source on GitHub ↗

The results of any successful operations that were performed before the error was encountered.

(self)

Source from the content-addressed store, hash-verified

351
352 @property
353 def partial_result(self) -> Optional[ClientBulkWriteResult]:
354 """The results of any successful operations that were
355 performed before the error was encountered.
356 """
357 from pymongo.results import ClientBulkWriteResult
358
359 if self.details.get("anySuccessful"):
360 return ClientBulkWriteResult(
361 self.details, # type: ignore[arg-type]
362 acknowledged=True,
363 has_verbose_results=self.verbose,
364 )
365 return None
366
367
368class InvalidOperation(PyMongoError):

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected