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

jsons.serializers.default_primitive   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Function

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