def generate_yara_bundle(cls, rules: list["Yara"]) -> str:
        """Export a list of Yara rules to a single string.

        Args:
            rules: A list of Yara rules to export.

        Returns:
            A string containing the exported rules.
        """
        resolved: set[str] = set()
        bulk_rules = ""
        for rule in rules:
            bulk_rules += rule.rule_with_dependencies(resolved)
        return bulk_rules
Export a list of Yara rules to a single string.

        Args:
            rules: A list of Yara rules to export.

        Returns:
            A string containing the exported rules.
        
core/schemas/indicators/yara.py