Passed
Pull Request — master (#17)
by Ramon
56s
created

default_primitive_serializer()   A

Complexity

Conditions 1

Size

Total Lines 8
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nop 2
1
def default_primitive_serializer(obj: object, **_) -> object:
2
    """
3
    Serialize a primitive; simply return the given ``obj``.
4
    :param obj: the primitive.
5
    :param _: not used.
6
    :return: ``obj``.
7
    """
8
    return obj
9