from collections.abc import Iterable
from dataclasses import dataclass, field

from org.accellera.spirit.v1_5.constraint_set import ConstraintSet

__NAMESPACE__ = "http://www.spiritconsortium.org/XMLSchema/SPIRIT/1.5"


@dataclass(slots=True)
class ConstraintSets:
    """
    List of constraintSet elements for a component port.
    """

    class Meta:
        name = "constraintSets"
        namespace = "http://www.spiritconsortium.org/XMLSchema/SPIRIT/1.5"

    constraint_set: Iterable[ConstraintSet] = field(
        default_factory=list,
        metadata={
            "name": "constraintSet",
            "type": "Element",
            "min_occurs": 1,
        },
    )
