Passed
Pull Request — master (#180)
by
unknown
01:49
created

default_literal_serializer()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nop 3
1
from typing import Literal, Any
2
3
from jsons._dump_impl import dump
4
5
def default_literal_serializer(obj: Any, cls: Literal, **kwargs):
6
    return dump(obj, type(obj), **kwargs)
7