The results of any successful operations that were performed before the error was encountered.
(self)
| 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 | |
| 368 | class InvalidOperation(PyMongoError): |
nothing calls this directly
no test coverage detected