CadQuery / CadQuery/cadquery

Make Python API support `os.PathLike[str]` object beside `str` path

Open
#2,016 1 comment 0 reactions 0 assignees View on GitHub
usability
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.