| Conditions | 1 |
| Total Lines | 9 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from pathlib import PurePath |
||
| 4 | def default_path_deserializer(obj: str, cls: type = PurePath, **kwargs) -> PurePath: |
||
| 5 | """ |
||
| 6 | Deserialize a string to a `pathlib.PurePath` object. Since ``pathlib`` |
||
| 7 | implements ``PurePath``, no filename or existence checks are performed. |
||
| 8 | :param obj: the string to deserialize. |
||
| 9 | :param kwargs: not used. |
||
| 10 | :return: a ``str``. |
||
| 11 | """ |
||
| 12 | return cls(obj) |
||
| 13 |