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

Method __call__

pymongo/read_preferences.py:474–478  ·  view source on GitHub ↗

Apply this read preference to Selection.

(self, selection: Selection)

Source from the content-addressed store, hash-verified

472 super().__init__(_NEAREST, tag_sets, max_staleness, hedge)
473
474 def __call__(self, selection: Selection) -> Selection:
475 """Apply this read preference to Selection."""
476 return member_with_tags_server_selector(
477 self.tag_sets, max_staleness_selectors.select(self.max_staleness, selection)
478 )
479
480
481class _AggWritePref:

Callers

nothing calls this directly

Calls 2

selectMethod · 0.80

Tested by

no test coverage detected