structured_data._unpack.unpack()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 1
dl 0
loc 6
rs 10
c 0
b 0
f 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