comment here
This commit is contained in:
12
.CondaPkg/env/lib/python3.11/site-packages/jsons/deserializers/default_path.py
vendored
Normal file
12
.CondaPkg/env/lib/python3.11/site-packages/jsons/deserializers/default_path.py
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
from pathlib import PurePath
|
||||
|
||||
|
||||
def default_path_deserializer(obj: str, cls: type = PurePath, **kwargs) -> PurePath:
|
||||
"""
|
||||
Deserialize a string to a `pathlib.PurePath` object. Since ``pathlib``
|
||||
implements ``PurePath``, no filename or existence checks are performed.
|
||||
:param obj: the string to deserialize.
|
||||
:param kwargs: not used.
|
||||
:return: a ``str``.
|
||||
"""
|
||||
return cls(obj)
|
||||
Reference in New Issue
Block a user