[BUG]: Wrong type annotation when using std::filesystem::path
as a return type, causes stubgen to choke
#5477
Labels
triage
New bug, unverified
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
741d86f
Problem description
When a function returns
std::filesystem::path
and I use<pybind11/stl/filesystem.h>
, the type annotation saysPath
, which is a non-existent type, which makespybind11_stubgen
choke on such functions.Previous versions of Pybind used to return
os.PathLike
, but this was broken in #5450.Reproducible example code
No response
Is this a regression? Put the last known working version here if it is.
2.10.1
The text was updated successfully, but these errors were encountered: