(
self,
response: Union[_OpReply, _OpMsg],
cursor_id: Optional[int],
codec_options: CodecOptions, # type: ignore[type-arg]
user_fields: Optional[Mapping[str, Any]] = None,
legacy_response: bool = False,
)
| 861 | return self |
| 862 | |
| 863 | def _unpack_response( |
| 864 | self, |
| 865 | response: Union[_OpReply, _OpMsg], |
| 866 | cursor_id: Optional[int], |
| 867 | codec_options: CodecOptions, # type: ignore[type-arg] |
| 868 | user_fields: Optional[Mapping[str, Any]] = None, |
| 869 | legacy_response: bool = False, |
| 870 | ) -> Sequence[_DocumentOut]: |
| 871 | return response.unpack_response(cursor_id, codec_options, user_fields, legacy_response) |
| 872 | |
| 873 | def _get_read_preference(self) -> _ServerMode: |
| 874 | if self._read_preference is None: |
nothing calls this directly
no test coverage detected