Total Complexity | 1 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | """An internal function for dealing with ADT instances.""" |
||
2 | |||
3 | |||
4 | def unpack(instance: tuple) -> tuple: |
||
5 | """Return the inside of any ADT instance. |
||
6 | |||
7 | This function is not meant for general use. |
||
8 | """ |
||
9 | return tuple.__getitem__(instance, slice(None)) |
||
10 | |||
11 | |||
12 | __all__ = ["unpack"] |
||
13 |