Represents a shape with min/max bounds.
| 23 | |
| 24 | |
| 25 | class BoundedShape(list): |
| 26 | """ |
| 27 | Represents a shape with min/max bounds. |
| 28 | """ |
| 29 | |
| 30 | def __init__(self, shape, min=None, max=None): |
| 31 | super().__init__(shape) |
| 32 | self.min = min |
| 33 | self.max = max |
| 34 | |
| 35 | def __repr__(self): |
| 36 | return f"BoundedShape({list(self)}, min={self.min}, max={self.max})" |
| 37 | |
| 38 | |
| 39 | class MetadataTuple: |
no outgoing calls