def get_rules(self): """ Get all of the rules for this project from the DB (or cache). :return: a list of `Rule`s """ return Rule.get_for_project(self.project.id)
def get_rules(self): return Rule.get_for_project(self.project.id)
def get_rules(self) -> Sequence[Rule]: """Get all of the rules for this project from the DB (or cache).""" rules_: Sequence[Rule] = Rule.get_for_project(self.project.id) return rules_