MCPcopy
hub / github.com/getsentry/sentry / filter

Method filter

src/sentry/options/manager.py:473–481  ·  view source on GitHub ↗

Return an iterator that's filtered by which flags are set on a key.

(self, flag: int | None = None)

Source from the content-addressed store, hash-verified

471 return self.registry.values()
472
473 def filter(self, flag: int | None = None):
474 """
475 Return an iterator that's filtered by which flags are set on a key.
476 """
477 if flag is None:
478 return self.all()
479 if flag is DEFAULT_FLAGS:
480 return (k for k in self.all() if k.flags is DEFAULT_FLAGS)
481 return (k for k in self.all() if k.flags & flag)
482
483 def get_last_update_channel(self, key: str) -> UpdateChannel | None:
484 """

Callers 15

eslint.config.tsFile · 0.45
RelocationPauseModalFunction · 0.45
RelocationCancelModalFunction · 0.45
EditAdminOptionModalFunction · 0.45
PlanListFunction · 0.45
extractColumnLabelFunction · 0.45
selectUserFunction · 0.45
ChangePlanActionFunction · 0.45
getPlanListForTierFunction · 0.45
DetailsPageFunction · 0.45
DebounceSearchFunction · 0.45
RelocationUnpauseModalFunction · 0.45

Calls 1

allMethod · 0.95

Tested by 15

normalizeCssFunction · 0.36
onDeleteFunction · 0.36
titlesDecoderFunction · 0.36
WrappedComponentFunction · 0.36
toHaveAggregateFieldsFunction · 0.36
findAllQueryFieldNthCellFunction · 0.36
getAllQueryFieldsNthCellFunction · 0.36
createWrapperFunction · 0.36
createWrapperFunction · 0.36
assertCheckoutStepsFunction · 0.36
_get_releases_modelsMethod · 0.36
getMethod · 0.36