MCPcopy Index your code
hub / github.com/twitter/communitynotes / check_dependencies

Method check_dependencies

scoring/src/scoring/scoring_rules.py:118–120  ·  view source on GitHub ↗

Raise an AssertionError if rule dependencies have not been satisfied.

(self, priorRules: Set[RuleID])

Source from the content-addressed store, hash-verified

116 return self._ruleID.get_name()
117
118 def check_dependencies(self, priorRules: Set[RuleID]) -> None:
119 """Raise an AssertionError if rule dependencies have not been satisfied."""
120 assert not (self._dependencies - priorRules)
121
122 @abstractmethod
123 def score_notes(

Callers 1

apply_scoring_rulesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected