Currently, for Python API in cadquery if there is a file path in function argument, it has to be str object.
However, according to the Python official, it is recommended to use os.PathLike[str] object like pathlib.Path .
It would be nice to add os.PathLike[str] support in the API under cadquery module.