Source code for quilt_knit.swatch.Swatch_Side

"""Super Class for enumeration defining the side of swatch being merged."""


[docs] class Swatch_Side: """Super Class for specifying the boundaries of swatches"""
[docs] def __init__(self, *args: tuple) -> None: assert len(args) > 0 self._side = args[0]
[docs] def __hash__(self) -> int: """ Returns: int: The hash value of the name of this Swatch Side """ return hash(self._side)