| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from typing import Optional |
||
| 2 | |||
| 3 | |||
| 4 | def default_primitive_deserializer(obj: object, |
||
| 5 | cls: Optional[type] = None, |
||
| 6 | **kwargs) -> object: |
||
| 7 | """ |
||
| 8 | Deserialize a primitive: it simply returns the given primitive. |
||
| 9 | :param obj: the value that is to be deserialized. |
||
| 10 | :param cls: not used. |
||
| 11 | :param kwargs: not used. |
||
| 12 | :return: ``obj``. |
||
| 13 | """ |
||
| 14 | return obj |
||
| 15 |