structured_data._unpack   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A unpack() 0 6 1
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