| Total Complexity | 1 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | """Abstract base class for advanced match classes.""" |
||
| 2 | |||
| 3 | |||
| 4 | class CompoundMatch: |
||
| 5 | """Abstract base class for advanced match classes.""" |
||
| 6 | |||
| 7 | __slots__ = () |
||
| 8 | |||
| 9 | def destructure(self, value): |
||
| 10 | """Given a value, return a sequence of values extracted from the match. |
||
| 11 | |||
| 12 | Usually has special-case behavior when ``value is self``, possibly as |
||
| 13 | part of a broader conditional that happens to be true in that specific |
||
| 14 | case as well. |
||
| 15 | """ |
||
| 16 | raise NotImplementedError |
||
| 17 |